:root {
    --bg-color: #f6f8fb;
    --brand-navy: #14243d;
    --text-color: #101828;
    --text-muted: #667085;
    
    --primary-color: #4f46e5; /* Indigo */
    --primary-light: #818cf8;
    --secondary-color: #0d9488; /* Teal */
    --accent-color: #e11d48; /* Rose */
    
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #0d9488 100%);
    --gradient-surface: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    
    --glass-bg: rgba(255, 255, 255, 0.86);
    --glass-border: rgba(255, 255, 255, 0.7);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: #f3f5f8;
    background-attachment: fixed;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--secondary-color);
}

/* --- Header & Navigation --- */
.glass-header {
    background: var(--brand-navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-banners {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
    min-height: 190px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.banner-text {
    flex: 1;
    text-align: center;
    margin: 0 1.5rem;
}

.faculty-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2px;
    letter-spacing: 0;
}

.university-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    opacity: 1;
}

.banner-logo {
    width: 150px;
    height: 150px;
    max-width: none;
    max-height: none;
    object-fit: contain;
    background: #eef3fb;
    padding: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 14px;
    box-shadow: 0 14px 32px rgba(2, 6, 23, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-logo:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.navbar > .container {
    max-width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    gap: 1rem;
}

.navbar-collapse {
    min-width: 0;
}

.logo a {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1.05rem;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

.nav-links a {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding: 0.45rem 0;
    white-space: nowrap;
    line-height: 1.45;
}

.nav-links > .nav-item > .nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links > .nav-item > .nav-link:not(.dropdown-toggle):hover::after {
    width: 100%;
}

.nav-links .dropdown-menu a {
    color: var(--text-color) !important;
    font-weight: 700;
    white-space: normal;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-align: right;
    border-bottom: 0;
}

.nav-links .dropdown-menu a::after {
    display: none;
}

.nav-links .dropdown-menu a:hover {
    color: var(--primary-color) !important;
    background: #f8fafc;
}

.nav-links .dropdown-menu {
    min-width: 240px;
    text-align: right;
    padding: 0.45rem;
    margin-top: 0.5rem;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.16) !important;
}

.dropdown-menu {
    z-index: 1100;
}

.nav-links .dropdown-toggle::after {
    position: static;
    display: inline-block;
    width: auto;
    height: auto;
    margin-right: 0.4rem;
    margin-left: 0;
    vertical-align: 0.12em;
    background: transparent;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    border-radius: 0;
    transition: none;
}

@media (min-width: 992px) {
    .nav-links .dropdown-menu-end {
        right: 0;
        left: auto;
    }
    .nav-links .dropdown-menu {
        max-height: calc(100vh - 280px);
        overflow-y: auto;
    }
    /* Custom scrollbar for dropdown menus */
    .nav-links .dropdown-menu::-webkit-scrollbar {
        width: 6px;
    }
    .nav-links .dropdown-menu::-webkit-scrollbar-track {
        background: transparent;
    }
    .nav-links .dropdown-menu::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.15);
        border-radius: 3px;
    }
    .nav-links .dropdown-menu::-webkit-scrollbar-thumb:hover {
        background-color: rgba(0, 0, 0, 0.3);
    }
}

/* --- Layout Containers --- */
.main-container {
    flex: 1;
    max-width: 1300px;
    margin: 3rem auto;
    width: 100%;
    padding: 0 2rem;
    box-sizing: border-box;
}

.content {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.08);
    border-radius: var(--border-radius-md);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    animation: slideUpFade 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

/* --- UI Elements --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    min-width: 180px; /* Standardize button width */
    border-radius: var(--border-radius-sm);
    background: var(--gradient-primary);
    color: white !important;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color);
}

/* Button Size Variations */
.btn-sm {
    min-width: auto !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
}

.btn-xs {
    min-width: auto !important;
    padding: 0.4rem 0.6rem !important;
    font-size: 0.75rem !important;
}

.btn-icon {
    min-width: auto !important;
    padding: 0.25rem 0.5rem !important;
    line-height: 1 !important;
    display: inline-flex !important;
}

.btn-danger {
    background: #ef4444 !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3) !important;
}

.btn-danger:hover {
    background: #dc2626 !important;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4) !important;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    border: 2px solid #e2e8f0;
    background: rgba(255,255,255,0.5);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* --- Cards --- */
.card {
    background: white;
    border-radius: 14px;
    border: 1px solid #f1f5f9;
    padding: 1.5rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
    transform: translateY(-4px);
}

.disbursement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.disbursement-card {
    min-height: 240px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96)),
        radial-gradient(circle at top left, color-mix(in srgb, var(--disbursement-color) 20%, transparent), transparent 45%);
    border: 1px solid color-mix(in srgb, var(--disbursement-color) 28%, #e2e8f0);
    border-radius: 14px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.disbursement-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

.disbursement-card__header {
    background: linear-gradient(135deg, var(--disbursement-color), color-mix(in srgb, var(--disbursement-color) 72%, #111827));
    color: white;
    padding: 1rem 1.25rem;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.disbursement-card__date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: color-mix(in srgb, var(--disbursement-color) 70%, var(--text-muted));
    font-weight: 600;
    padding: 1rem 1.25rem 1.25rem;
}

.disbursement-card__body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.disbursement-card__reason {
    margin: 0;
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.4;
}

.disbursement-card__value {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    min-height: 92px;
    color: color-mix(in srgb, var(--disbursement-color) 75%, var(--text-muted));
    font-weight: 700;
    text-align: center;
}

.disbursement-card__value strong {
    color: var(--disbursement-color);
    font-size: 2rem;
    line-height: 1;
}

.empty-state {
    background: white;
    border: 1px dashed #cbd5e1;
    border-radius: var(--border-radius-sm);
    color: var(--text-muted);
    font-weight: 700;
    padding: 2rem;
    text-align: center;
}

.department-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.department-card {
    min-height: 210px;
    background:
        linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(13, 148, 136, 0.1)),
        white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.department-card__eyebrow {
    color: var(--secondary-color);
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.department-card h3 {
    color: var(--primary-color);
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.department-card__manager {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius-sm);
    color: var(--text-color);
    font-weight: 700;
    padding: 0.75rem 1rem;
}

.department-card__manager i {
    color: var(--secondary-color);
}

.department-card__actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.department-card__actions form {
    margin: 0;
}

.dashboard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.section-kicker {
    display: inline-flex;
    color: var(--secondary-color);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 0.35rem;
}

.superadmin-department-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.25rem;
}

.superadmin-department-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.09);
    padding: 1.35rem;
}

.superadmin-department-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.superadmin-department-card h3 {
    color: var(--primary-color);
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
}

.task-count-pill,
.task-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.35rem 0.75rem;
}

.department-meta-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-muted);
    font-weight: 700;
    padding-bottom: 1rem;
    border-bottom: 1px solid #edf2f7;
}

.department-meta-row i {
    color: var(--secondary-color);
}

.department-task-totals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #edf2f7;
}

.task-total,
.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
}

.task-total {
    padding: 0.45rem 0.85rem;
    font-size: 0.88rem;
}

.task-total.is-done,
.count-badge.is-done {
    background: #ccfbf1;
    color: #0f766e;
}

.task-total.is-open,
.count-badge.is-open {
    background: #ffe4e6;
    color: #be123c;
}

.member-summary-table {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
}

.member-summary-row {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) 84px 96px;
    align-items: center;
    gap: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e5edf5;
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
}

.member-summary-row--head {
    background: #ffffff;
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.member-summary-row strong {
    color: var(--text-color);
}

.count-badge {
    min-width: 44px;
    min-height: 32px;
    padding: 0.25rem 0.65rem;
}

.department-member-task-list {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.member-task-panel {
    background: #f8fafc;
    border: 1px solid #e5edf5;
    border-radius: 12px;
    padding: 0.9rem;
}

.member-task-panel__top,
.member-task-item__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.member-task-panel__top strong {
    color: var(--text-color);
}

.member-task-panel__top span,
.member-task-empty,
.mini-empty-state {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.member-task-items {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.member-task-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-right: 4px solid var(--accent-color);
    border-radius: 10px;
    padding: 0.8rem;
}

.member-task-item.is-done {
    border-right-color: var(--secondary-color);
}

.member-task-item strong {
    display: block;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.member-task-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 0.7rem;
}

.member-task-item__meta {
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.member-task-item.is-done .task-status-badge {
    background: #ccfbf1;
    color: #0f766e;
}

.member-task-empty,
.mini-empty-state {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    margin-top: 0.75rem;
    padding: 0.75rem;
    text-align: center;
}

.form-card {
    max-width: 640px;
    margin: 0 auto;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    padding: 2rem;
}

.form-card h2 {
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
}

.exam-days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.exam-day-option {
    display: grid;
    gap: 0.65rem;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.exam-day-option:hover {
    transform: translateY(-2px);
    border-color: var(--primary-light);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.exam-day-option input {
    width: 20px;
    height: 20px;
}

.exam-day-option.is-selected {
    border-color: var(--primary-color);
    background: #eef2ff;
}

.exam-day-option.is-full:not(.is-selected) {
    opacity: 0.68;
}

.exam-day-option__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.exam-day-option__date {
    color: var(--text-color);
    font-size: 1.15rem;
    font-weight: 800;
}

.metric-card {
    display: grid;
    gap: 0.4rem;
    min-height: 110px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--primary-color);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.metric-card span {
    color: var(--text-muted);
    font-weight: 800;
}

.metric-card strong {
    color: var(--text-color);
    font-size: 2rem;
    line-height: 1;
}

.metric-card.is-success {
    border-top-color: var(--secondary-color);
}

.metric-card.is-danger {
    border-top-color: var(--accent-color);
}

.metric-card.is-muted {
    border-top-color: #64748b;
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 2.5rem;
    margin-top: auto;
}

.glass-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-weight: 500;
}

/* --- Animations --- */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Messaging Specific */
.unread-badge {
    background: var(--accent-color);
    color: white;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.4);
    margin-right: 6px;
}

/* Modal & Picker Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal-container {
    width: 90%;
    max-width: 500px;
    max-height: 70vh;
    background: white !important;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden;
    animation: slideDown 0.3s ease;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 1.5rem;
    background: var(--bg-color);
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 { margin: 0; color: var(--primary-color); }

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-body {
    padding: 1.5rem;
    flex-grow: 1;
    overflow-y: auto;
}

.user-list-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: var(--border-radius-sm);
}

.user-item {
    display: flex;
    flex-direction: row; /* Standard RTL flow */
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.2s;
}

.user-item:hover { background: #f8fafc; }

.user-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
}

.user-name { flex-grow: 1; font-weight: 500; text-align: right; }

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: var(--bg-color);
}

.recipient-tag {
    background: var(--gradient-primary);
    color: white;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { transform: translateY(-30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 991px) {
    .glass-header {
        position: relative;
    }

    .header-banners {
        min-height: auto;
        padding: 1rem;
        flex-direction: row;
        justify-content: space-around;
        gap: 0.5rem;
    }

    .banner-logo {
        width: 60px;
        height: 60px;
        padding: 0.3rem;
    }

    .faculty-name {
        font-size: 1.1rem;
    }

    .university-name {
        font-size: 0.9rem;
    }

    .navbar-collapse {
        background: var(--brand-navy);
        padding: 1rem;
        border-radius: var(--border-radius-sm);
        margin-top: 0.5rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-links a {
        padding: 0.75rem 0;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links a::after {
        display: none;
    }

    .main-container {
        margin: 1rem auto;
        padding: 0 0.75rem;
    }

    .content {
        padding: 1.5rem 1rem;
    }

    .superadmin-department-grid {
        grid-template-columns: 1fr;
    }

    .member-summary-row {
        grid-template-columns: minmax(110px, 1fr) 68px 82px;
        gap: 0.45rem;
        padding: 0.7rem;
    }
}

@media (max-width: 576px) {
    .header-banners {
        flex-wrap: wrap;
    }

    .banner-text {
        order: 3;
        width: 100%;
        margin: 0.5rem 0 0;
    }

    .banner-logo {
        width: 50px;
        height: 50px;
    }
}

/* Table Responsiveness Utilities */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
