/* General Form Styles */
.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #F2F8FF;
    padding: 20px;
    margin-bottom: 20px;
}

.animated-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
}

.animated-form h2 {
    color: #3572EF;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #050C9C;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #3572EF;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    border-color: #3ABEF9;
    box-shadow: 0 0 10px rgba(58, 190, 249, 0.3);
    outline: none;
}

.submit-button {
    width: 100%;
    padding: 12px;
    background-color: #3572EF;
    color: #fff;
    font-size: 1.2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
}

.submit-button:hover {
    background-color: #050C9C;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    font-family: 'Poppins', sans-serif;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination button {
    background: linear-gradient(135deg, #3572EF, #050C9C); /* Gradient for a modern look */
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 50px; /* Rounded for a more futuristic style */
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Soft shadow for subtle depth */
}

.pagination button:hover {
    background-color: #3ABEF9;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.pagination button:disabled {
    background-color: #ccc;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
}

.pagination button.active {
    background: linear-gradient(135deg, #3ABEF9, #050C9C);
    color: white;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.pagination span {
    font-size: 14px;
    color: #333;
    font-weight: bold;
    letter-spacing: 0.6px;
}

/* Media Queries for Responsiveness */

/* For tablets and medium devices */
@media (max-width: 768px) {
    .pagination button {
        padding: 8px 12px; /* More compact padding for medium screens */
        font-size: 13px; /* Smaller font for better readability */
        border-radius: 40px; /* Adjusted rounding for medium devices */
    }

    .pagination span {
        font-size: 13px;
    }
}

/* For small devices and mobile phones */
@media (max-width: 480px) {
    .pagination {
        gap: 5px; /* Less gap between pagination items */
    }

    .pagination button {
        padding: 6px 10px; /* Even more compact padding for mobile screens */
        font-size: 12px; /* Smaller font size for mobile */
        border-radius: 30px; /* Smaller rounding for better usability on touchscreens */
    }

    .pagination span {
        font-size: 12px; /* Smaller text for compactness */
    }
}

/* For very small devices or small screen phones */
@media (max-width: 360px) {
    .pagination {
        flex-direction: row; /* Keep pagination horizontal */
        gap: 4px; /* Minimum gap to keep buttons closer */
    }

    .pagination button {
        padding: 5px 8px; /* Minimal padding for tiny screens */
        font-size: 11px; /* Smaller font to fit tiny screens */
        border-radius: 20px; /* Rounded for touch-friendly design */
    }

    .pagination span {
        font-size: 11px; /* Very small text for small devices */
    }
}
