/* Combined CSS from CSS1 and CSS2 */

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #ece9e6, #ffffff);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    z-index: 999;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-left h1 {
    margin: 0;
    font-size: 1.4em;
    color: #3b5998;
    display: flex;
    align-items: center;
}

/* Logo Styling */
.header-left h1 img {
    height: 50px; /* Increased size from 40px to 50px */
    margin-right: 10px; /* Changed from margin-left to margin-right */
}

.fa-bell {
    font-size: 24px;
    cursor: pointer;
    color: #3b5998;
    transition: color 0.3s ease;
}

.fa-bell:hover {
    color: #2a4888;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #f0f0f0;
    font-size: 14px;
    margin-top: auto;
}

/* Disabled button state */
button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none; /* Remove any hover effects when disabled */
}

button:disabled:hover {
    background-color: #cccccc; /* Prevent hover color change when disabled */
}

/* Enhanced Login Container Styles */
.login-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin: 100px auto;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
}

.login-container h2 {
    margin-bottom: 30px;
    font-size: 28px;
    color: #333;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Wrapper for input fields with icons */
.input-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.input-wrapper .fa {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
}

.login-container input {
    width: 100%;
    padding: 15px 20px 15px 45px;
    margin-bottom: 0; /* Remove bottom margin as it's handled by .input-wrapper */
    border-radius: 30px;
    border: 1px solid #ddd;
    font-size: 16px;
    background: #f9f9f9;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.login-container input:focus {
    border-color: #3b5998;
    box-shadow: 0 0 10px rgba(59, 89, 152, 0.5);
    background: #fff;
    outline: none;
}

.login-container input::placeholder {
    color: #999;
    font-style: italic;
}

.login-container button {
    padding: 15px 20px;
    background: linear-gradient(135deg, #3ab5b0, #3d99be);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 18px;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.login-container button:hover {
    background: linear-gradient(135deg, #3d99be, #3ab5b0);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

.login-error, .deactivated-error, .username-error, .password-error {
    color: red;
    margin-top: 10px;
    font-weight: bold;
}

.hidden {
    display: none;
}

.extra-actions {
    margin-top: 20px;
    text-align: center;
}

.extra-actions a {
    display: block;
    margin: 10px 0;
    color: #3b5998;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.extra-actions a:hover {
    color: #2a4888;
    text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .header h1 {
        font-size: 1.2em;
    }

    .login-container {
        width: 80%;
        padding: 30px 20px;
    }

    /* Adjust spinner size on mobile */
    .spinner {
        width: 40px;
        height: 40px;
        border-width: 6px;
    }

    /* Adjust loading text size on mobile */
    #loading-container p {
        font-size: 1em;
    }
}

/* Loading animation styles */
#loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#loading-container p {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #333;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3b5998;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer Enhancement */
.powered-by {
    font-style: italic;
    color: #555;
    margin-left: 5px;
    font-weight: 500;
}

/* Container Styles for Dashboard */
.container {
    max-width: 800px;
    margin: 100px auto 20px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    position: relative;
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.cover-photo {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
}

.profile-picture {
    width: 150px;
    height: 150px;
    border: 5px solid #fff;
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    top: 160px;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    background-color: #fff;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    padding: 30px;
    margin-top: 50px;
}

.profile-info h1, .profile-info h2 {
    margin: 0;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3b5998;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.button:hover {
    background-color: #2a4888;
    transform: scale(1.05);
}

.logout-button {
    background: linear-gradient(to right, #ff5f6d, #ffc371);
    color: white;
    padding: 10px 25px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-button:hover {
    background: linear-gradient(to right, #ff9966, #ff5e62);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

/* Due Amount Section */
.due-fees {
    margin-top: 15px;
    font-size: 18px;
}

.due-fees .due-months, .due-fees .due-amount {
    font-size: 20px;
    font-weight: bold;
}

.due-red {
    color: darkred;
}

.due-yellow {
    color: darkorange;
}

.due-green {
    color: darkgreen;
}

/* Extra Actions (Duplicate from earlier styles) */
.extra-actions {
    margin-top: 20px;
    text-align: center;
}

.extra-actions a {
    display: block;
    margin: 10px 0;
    color: #3b5998;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.extra-actions a:hover {
    color: #2a4888;
    text-decoration: underline;
}

/* Table Styling */
table, th, td {
    border: 1px solid #ddd;
    border-collapse: collapse;
}

table {
    width: 100%;
    margin-top: 20px;
}

th, td {
    padding: 10px;
    text-align: center;
}

.table-message {
    margin-top: 10px;
    font-weight: bold;
    font-size: 14px;
    color: #3b5998;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .header h1 {
        font-size: 1.2em;
    }

    .container {
  max-width: 800px;
  margin: 20px auto; /* for a smaller gap */
  ...
}
        width: auto;
    }

    .profile-info h1 {
        font-size: 1.5em;
    }

    .profile-info h2 {
        font-size: 1.2em;
    }

    .profile-picture {
        width: 120px;
        height: 120px;
    }

    table {
        font-size: 12px;
    }

    .button, .logout-button {
        padding: 8px 15px;
    }

    /* Hide 'Total Marks' column on mobile */
    th:nth-child(2), td:nth-child(2) {
        display: none;
    }

    /* Show mobile marks info row */
    .mobile-marks-info {
        display: table-row;
    }

    .spinner {
        width: 40px;
        height: 40px;
        border-width: 6px;
    }

    #loading-container p {
        font-size: 1em;
    }
}

/* Custom message row for mobile */
.mobile-marks-info {
    display: none;
}

/* Hidden Class */
.hidden {
    display: none;
}
