/*
 * =========================================
 * APP.CSS
 *
 * Component and page-specific styles for the application.
 * - Login Page Styles
 * - Portal Layout & Component Styles
 * =========================================
*/

/* --- Login Page Styles --- */
.bg-image-container {
    background-image: url('../assets/images/university-campus-bg.jpg'); 
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease-in-out;
}
.login-form-panel {
    background-color: var(--color-primary-dark);
}

/* --- Portal Layout Styles --- */
.portal-main {
    background-color: var(--color-background);
}

/* --- Header Component Styles --- */
.portal-header {
    background-color: var(--color-primary-dark);
}

/* --- Student Info Card (Sidebar Top) Styles --- */
.student-info-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* --- Stats Bar Component Styles --- */
.stat-card {
    background-color: var(--color-surface);
    border-radius: 0.375rem; /* 6px */
    border: 1px solid var(--color-border);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden;
    text-align: center;
}
.stat-card .number {
    font-weight: 700;
    font-size: 1.5rem; /* 24px */
    color: var(--text-dark);
    padding: 0.75rem 0; /* 12px */
}
.stat-card .label {
    font-size: 0.875rem; /* 14px */
    color: var(--text-light);
    padding: 0.5rem 0; /* 8px */
}

/* --- Sidebar Component Styles --- */
.sidebar-nav {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}
.sidebar-link:hover {
    background-color: #f3f4f6; /* Can be a variable if desired */
}
.sidebar-link.active {
    background-color: var(--color-primary-light);
    color: var(--text-light);
}
.sidebar-link svg {
    width: 1.25rem; /* 20px */
    height: 1.25rem; /* 20px */
    margin-right: 0.75rem;
    color: var(--text-muted); /* Default icon color */
}
.sidebar-link.active svg {
    color: var(--text-light);
}

/* --- Fee Details Page Styles --- */
.fee-menu-item {
    border: 1px solid var(--color-border);
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
.fee-table th, .fee-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}
.fee-table th {
    background-color: var(--color-accent);
    color: var(--text-light);
    font-weight: 600;
}
.fee-table .total-row td {
    font-weight: 700;
    background-color: var(--color-surface-light);
}

.group:hover > .sub-menu {
    display: block;
}


/*
 * =========================================
 * Attendance Page Styles
 * =========================================
*/
.attendance-table th {
    background-color: #e3e8f8; /* A light, non-intrusive blue */
    font-weight: 600;
    color: var(--text-dark);
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.attendance-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

/* Removes the bottom border from the very last row */
.attendance-table tbody tr:last-child td {
    border-bottom: none;
}

.attendance-table .total-row {
    background-color: #e3e8f8;
    font-weight: 700;
}

.attendance-table a {
    color: var(--color-primary-light);
    font-weight: 500;
    text-decoration: none;
}

.attendance-table a:hover {
    text-decoration: underline;
}

/*
 * =========================================
 * Announcement & Task Page Styles
 * =========================================
*/
.page-header-bar {
    background-color: #f0f5fa; /* A very light blue/gray */
    border-bottom: 1px solid var(--color-border);
}


/*
 * =========================================
 * Courses Page Styles
 * =========================================
*/
.courses-table th {
    background-color: #eef2f7; /* Light blue/gray */
    font-weight: 600;
    color: var(--text-dark);
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.courses-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.courses-table tbody tr:last-child td {
    border-bottom: none;
}

/*
 * =========================================
 * Profile Page Styles
 * =========================================
*/
/*
 * =========================================
 * Profile Page Styles
 * =========================================
*/
.profile-tabs-container {
    overflow-x: auto;
    white-space: nowrap;
}
.profile-tab {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin-right: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    background-color: #e5e7eb; /* gray-200 */
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    border: 1px solid var(--color-border);
    border-bottom: none;
    transition: background-color 0.2s;
}
.profile-tab:hover {
    background-color: #d1d5db; /* gray-300 */
}
.profile-tab.active {
    background-color: var(--color-surface); /* white */
    color: var(--color-primary-light);
    border-bottom: 1px solid var(--color-surface);
    position: relative;
    top: 1px;
}


/*
 * =========================================
 * Marks Page Styles
 * =========================================
*/
.marks-table th {
    background-color: #eef2f7; /* Light blue/gray */
    font-weight: 600;
    color: var(--text-dark);
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.marks-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.marks-table tbody tr:last-child td {
    border-bottom: none;
}


/*
 * =========================================
 * Marks Page Styles
 * =========================================
*/
.marks-table th {
    background-color: #eef2f7;
    /* Light blue/gray */
    font-weight: 600;
    color: var(--text-dark);
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.marks-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.marks-table tbody tr:last-child td {
    border-bottom: none;
}


/*
 * =========================================
 * Payment Page Modal Styles (ENHANCED)
 * =========================================
*/
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}
.payment-modal-content {
    background-color: var(--color-surface);
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 420px;
    overflow: hidden;
    transform: scale(0.95);
    opacity: 0;
    animation: fadeInScale 0.3s forwards ease-out;
}

@keyframes fadeInScale {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.payment-modal-header {
    background-color: var(--color-accent);
    color: var(--text-light);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.payment-modal-footer {
    background-color: #f8f9fa; /* A very light gray */
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--color-border);
}

/* Sliding Text (Marquee) Animation */
.sliding-text-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    background-color: white;
    border: 1px solid var(--color-border);
    border-radius: 0.375rem;
    padding: 0.5rem 0;
}
.sliding-text {
    display: inline-block;
    padding-left: 100%; /* Start off-screen */
    animation: slide 15s linear infinite;
    font-size: 0.875rem;
    color: #495057;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}



/*
 * =========================================
 * Footer Styles
 * =========================================
*/
.portal-footer {
    background-color: var(--color-primary-dark);
    color: #a0aec0; /* Lighter text for footer */
    padding: 2rem 1rem;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-primary-medium);
}
.footer-section {
    padding: 0 1rem;
}
.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1rem;
}
.footer-section p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}
.social-icons {
    display: flex;
    gap: 1rem;
}
.social-icons a {
    color: #a0aec0;
    font-size: 1.25rem;
    transition: color 0.3s;
}
.social-icons a:hover {
    color: var(--text-light);
}
.footer-logo {
    max-height: 40px;
}
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}



.portal-footer {
    background-color: var(--color-primary-dark);
    color: #a0aec0; /* Lighter text for footer */
    padding: 2rem 1rem;
    margin-top: auto; /* Pushes footer to the bottom */
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-primary-medium);
}
.footer-section {
    flex: 1;
}
.footer-section.footer-logo-section {
    display: flex;
    justify-content: flex-end;
}
.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1rem;
}
.footer-section p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}
.social-icons {
    display: flex;
    gap: 1rem;
}
.social-icons a {
    color: #a0aec0;
    font-size: 1.25rem;
    transition: color 0.3s;
}
.social-icons a:hover {
    color: var(--text-light);
}
.footer-logo {
    max-height: 40px;
}
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}