/* Professional system type — Plus Jakarta Sans (self-hosted, offline) */
:root {
    /* Typography — single scale used on every page */
    --font-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
    --fs-2xs: 0.75rem;    /* 12px — micro badges, tiny tags */
    --fs-xs: 0.8125rem;   /* 13px — badges, uppercase labels */
    --fs-sm: 0.875rem;    /* 14px — captions, meta, table headers */
    --fs-base: 0.9375rem; /* 15px — body, forms, buttons, table cells */
    --fs-md: 1.0625rem;   /* 17px — card titles, names */
    --fs-lg: 1.25rem;     /* 20px — section headings / topbar */
    --fs-xl: 1.5rem;      /* 24px — page titles */
    --fs-2xl: 1.875rem;   /* 30px — KPI / big numbers */
    --lh-tight: 1.25;
    --lh-normal: 1.5;
    --lh-relaxed: 1.6;
    --header-h: 72px;

    /* Radii — shared across cards, forms, buttons */
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 14px;

    /* ISU Brand Colors */
    --primary: #065F2B; /* Forest Green */
    --primary-light: #0A8B42;
    --primary-deep: #043e1c;
    --secondary: #F6A800; /* Golden Yellow */
    --secondary-hover: #D69300;
    
    /* Neutral & Backgrounds — soft slate (not pure black) */
    --bg-color: #F8FAFC;
    --surface-color: #FFFFFF;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #F1F5F9;
    
    /* System Colors */
    --success: #10B981;
    --error: #EF4444;
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: var(--font-sans);
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: var(--lh-relaxed);
    font-size: var(--fs-base);
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video {
    max-width: 100%;
}
/* Chart.js sizes canvas from the parent box. max-width on <canvas> makes charts
   overflow and paint on top of tables/cards on Survey, Dashboard, and Reports. */
canvas {
    max-width: none;
    display: block;
}
.dash-chart,
.sv-chart,
.report-chart {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.dash-chart canvas,
.sv-chart canvas,
.report-chart canvas {
    display: block !important;
    max-width: none !important;
}
.sidebar-brand-logo img,
.topbar-avatar img,
.top-nav-avatar img {
    max-width: none;
}

button, input, select, textarea, .btn, .form-control {
    font-family: inherit;
}

code, kbd, pre, .mono {
    font-family: var(--font-mono);
}

/* Premium Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.4);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.8);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: var(--lh-tight);
    color: var(--text-primary);
    letter-spacing: -0.015em;
}

h1 { font-size: var(--fs-xl); }
h2 { font-size: var(--fs-lg); }
h3 { font-size: var(--fs-md); }
h4 { font-size: var(--fs-base); }
h5 { font-size: var(--fs-sm); }
h6 { font-size: var(--fs-sm); }

/* Button Component */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    font-size: var(--fs-base);
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(6, 95, 43, 0.2);
}

.btn-outline {
    background-color: #fff;
    border: 1.5px solid #e2e8f0;
    color: var(--primary);
}

.btn-outline:hover {
    background-color: #ecfdf5;
    border-color: #a7f3d0;
    color: var(--primary);
}

/* Cards & Panels */
.card, .panel {
    background: var(--surface-color);
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.panel-header {
    font-size: var(--fs-lg); 
    font-weight: 700; 
    color: var(--text-primary); 
    border-bottom: 1px solid #e2e8f0; 
    padding-bottom: 1rem; 
    margin-bottom: 1.5rem; 
    display: flex; 
    align-items: center; 
    gap: 0.5rem;
}

.card:hover, .panel:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: #cbd5e1;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: var(--fs-sm);
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-family: inherit;
    font-size: var(--fs-base);
    font-weight: 500;
    transition: border-color 0.3s;
    background: #F8FAFC;
    color: var(--text-primary);
}

/* File inputs: keep "Choose file" / filename always visible (not white-on-white) */
input[type="file"].form-control,
input[type="file"].st-file-input,
.form-control[type="file"] {
    color: var(--text-primary) !important;
    background: #F8FAFC !important;
    cursor: pointer;
}
input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
    background: var(--primary);
    color: #fff !important;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.85rem;
    margin-right: 0.75rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(6, 95, 43, 0.12);
}

input[type="text"]:not(.gts-no-capitalize):not([data-no-capitalize="1"]):not([name*="username"]):not([id="username"]),
textarea:not(.gts-no-capitalize):not([data-no-capitalize="1"]) {
    text-transform: capitalize;
}
input[type="email"],
input[name="email"],
input[name*="username"],
input[name*="password"],
input[name="student_id"],
input[name="contact_number"],
input[name="contact"],
input[type="search"],
input[type="number"],
input[type="date"],
input[type="tel"],
input[type="file"],
input[type="hidden"],
.gts-no-capitalize,
[data-no-capitalize="1"] {
    text-transform: none;
}

/* Disabled fields must stay readable without hover */
.form-control:disabled,
.form-control[readonly],
select:disabled,
input:disabled {
    opacity: 1 !important;
    color: var(--text-secondary) !important;
    background: #f1f5f9 !important;
    -webkit-text-fill-color: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tables for Dashboard */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #E2E8F0;
}

th {
    background-color: #F8FAFC;
    font-weight: 600;
    color: var(--text-secondary);
}

tr:hover {
    background-color: #F1F5F9;
}

/* Modern Dashboard Styles */
.badge {
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: var(--fs-xs);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.badge-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.badge-warning { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.badge-neutral { background: #f0f9ff; color: #0284c7; border: 1px solid #bae6fd; }

/* =========================================
   RESPONSIVE LAYOUT STYLES
========================================= */

/* screen-only so print (narrow page width) keeps desktop layouts */
@media screen and (max-width: 1024px) {
    .main-content {
        padding: 2rem !important;
    }
    div[style*="display: grid; grid-template-columns: 2fr 1fr"], 
    div[style*="display: grid; grid-template-columns: 1fr 2fr"],
    div[style*="grid-template-columns: 380px 1fr"],
    div[style*="grid-template-columns: 340px 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media screen and (max-width: 768px) {
    /* Stack Dashboard Layout */
    .dashboard-layout, div[style*="display:flex; min-height"] {
        flex-direction: column !important;
    }
    
    /* Make Sidebar Horizontal/Fluid on Mobile (non-dashboard pages only) */
    .sidebar:not(#adminSidebar) {
        width: 100% !important;
        min-height: auto !important;
        border-right: none !important;
        border-bottom: 1px solid #e2e8f0;
        padding: 1rem !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    .sidebar:not(#adminSidebar) > div {
        width: 100%;
        text-align: center;
    }
    
    .sidebar:not(#adminSidebar) a {
        padding: 0.6rem 0.8rem !important;
        font-size: var(--fs-base) !important;
        margin: 0 !important;
    }
    
    /* Content Area */
    .main-content {
        padding: 1.5rem 1rem !important;
    }
    
    /* Overide Inline Grids */
    div[style*="display: grid"], div[style*="display:grid"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
    }
    
    /* Tables Container Scroll */
    .panel {
        padding: 1.25rem !important;
    }
    
    div[style*="overflow-x: auto"] table, .table-modern {
        min-width: 600px;
    }
}
/* Table Modern */
.table-modern {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    color: var(--text-primary);
}
.table-modern th {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #e2e8f0;
    color: #ffffff;
    font-weight: 700;
    background: var(--primary);
    text-transform: uppercase;
    font-size: var(--fs-xs);
    letter-spacing: 0.04em;
    white-space: nowrap;
    line-height: 1.2;
}
.table-modern td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-primary);
    font-weight: 500;
    font-size: var(--fs-sm);
    line-height: var(--lh-normal);
}
.table-modern tbody tr:hover {
    background: #f8fafc;
}

/* Global Print Styles */
@media print {
    .sidebar, .dashboard-wrapper > aside, nav, button, a.btn, .btn,
    .site-footer, footer.site-footer, .mobile-nav-toggle, .sidebar-overlay { display: none !important; }
    html, body, body:has(.dashboard-wrapper) {
        background: white !important;
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }
    .dashboard-layout,
    .dashboard-wrapper,
    .dashboard-wrapper > .dashboard-content,
    .dashboard-wrapper > div {
        display: block !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
    .main-content {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        flex: none !important;
    }
    .panel, .card { box-shadow: none !important; border: 1px solid #ccc; break-inside: avoid; }
    canvas { max-width: 100% !important; }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem !important;
        margin: 1rem;
    }
}

/* =========================================
   ISU GLOBAL COLOR ENHANCEMENTS 
========================================= */

/* Sidebar Enhancements */
.sidebar {
    border-right: 1px solid var(--primary-deep) !important;
}
.sidebar a,
.sidebar .sidebar-link {
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.7rem;
    color: #e2e8f0;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: var(--fs-sm);
    line-height: 1.25;
    white-space: nowrap;
}
.sidebar .sidebar-link i,
.sidebar a.sidebar-link i {
    flex-shrink: 0;
    font-size: var(--fs-md);
    width: 1.1em;
    text-align: center;
}
.sidebar .sidebar-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.sidebar-nav {
    padding: 1.1rem 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}
.sidebar-nav .sidebar-section {
    margin-top: 0.85rem;
}
.sidebar a:hover:not(.sidebar-brand),
.sidebar .sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    transform: none;
}
.sidebar a:hover:not(.sidebar-brand) i,
.sidebar .sidebar-link:hover i {
    color: #ffffff !important;
}
.sidebar a.is-active:not(.sidebar-brand),
.sidebar .sidebar-link.is-active {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-left: 3px solid var(--secondary) !important;
    font-weight: 600 !important;
}
.sidebar a.is-active:not(.sidebar-brand) i,
.sidebar .sidebar-link.is-active i {
    color: var(--secondary) !important;
}

/* Nav top accent — dashboard top bar only (not landing glass-nav) */
.dashboard-wrapper > .dashboard-content > nav {
    border-top: none;
    border-bottom: 3px solid var(--secondary) !important;
}

/* Top profile initials */
.top-nav-avatar {
    border: 2px solid var(--secondary) !important;
}

/* Forms & Inputs — green focus (matches brand primary) */
.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(6, 95, 43, 0.12) !important;
}

/* UI Cards / panels in app chrome (not auth cards — those keep gold accent) */
.main-content .card,
.main-content .panel,
.dashboard-content .card,
.dashboard-content .panel {
    border-top: 4px solid var(--primary) !important;
    border-radius: var(--radius-md);
}
.auth-card {
    border-top: 5px solid var(--secondary) !important;
    border-radius: var(--radius-lg) !important;
}

/* Tables Enhancements */
th {
    background-color: var(--primary) !important;
    color: white !important;
}
.table-modern th {
    background-color: var(--primary) !important;
    color: white !important;
    border-bottom: 3px solid var(--secondary) !important;
}
.table-modern tbody tr:nth-child(even) {
    background-color: rgba(6, 95, 43, 0.02);
}
.table-modern tbody tr:hover {
    background-color: rgba(246, 168, 0, 0.08) !important;
}

/* Buttons Updates */
.btn-primary {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    border-radius: var(--radius-sm);
}
.btn-primary:hover {
    background-color: var(--primary-light) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(6, 95, 43, 0.25) !important;
}

/* Badges override to make them greener */
.badge-success { background: #ecfdf5 !important; color: var(--primary) !important; border: 1px solid var(--primary-light) !important; }
.badge-warning { background: #fffbeb !important; color: #b45309 !important; border: 1px solid var(--secondary) !important; }

/* Main content scroll area — soft slate type across all admin/alumni pages */
.main-content {
    padding: 2rem 1.75rem;
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    overflow: auto;
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: var(--lh-relaxed);
    color: var(--text-primary) !important;
    -webkit-font-smoothing: antialiased;
}
.main-content,
.main-content *:not(i):not(.ph):not([class*="ph-"]):not(svg):not(path):not(.badge):not(.btn-primary):not(.btn):not(a.btn) {
    color: inherit;
}
.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4,
.main-content h5,
.main-content h6,
.main-content p,
.main-content li,
.main-content td,
.main-content label,
.main-content span:not(.badge):not([class*="badge-"]),
.main-content small,
.main-content strong,
.main-content div:not(.badge):not([class*="badge-"]),
.main-content a:not(.btn):not(.sidebar-link) {
    color: var(--text-primary) !important;
}
/* White text on green / dark primary surfaces (beats text-primary lock above) */
.main-content th,
.main-content thead th,
.main-content .table-modern th,
.main-content th *,
.main-content .table-modern th *,
.main-content .btn-primary,
.main-content .btn.btn-primary,
.main-content a.btn-primary,
.main-content .btn-primary *,
.main-content .btn.primary,
.main-content .btn-sm.primary,
.main-content .sv-btn.primary,
.main-content .um-btn.primary,
.main-content .st-btn.primary,
.main-content .sb-btn.primary,
.main-content .av-btn-primary,
.main-content .report-kpi-cell .lbl,
.main-content [style*="background:var(--primary)"],
.main-content [style*="background: var(--primary)"],
.main-content [style*="background:#065F2B"],
.main-content [style*="background: #065F2B"],
.main-content [style*="background-color:var(--primary)"],
.main-content [style*="background-color: var(--primary)"],
.main-content [style*="background-color:#065F2B"],
.main-content [style*="background-color: #065F2B"] {
    color: #ffffff !important;
}
.main-content .badge-success { color: #047857 !important; }
.main-content .badge-error { color: #dc2626 !important; }
.main-content .badge-warning { color: #b45309 !important; }
.main-content .badge-neutral { color: #0284c7 !important; }
.main-content p,
.main-content li,
.main-content td,
.main-content label,
.main-content span:not(.badge):not([class*="badge-"]),
.main-content small {
    font-family: inherit;
    font-size: var(--fs-base);
}
.main-content p {
    line-height: var(--lh-relaxed);
}
.main-content small,
.main-content .text-muted,
.main-content .hint,
.main-content .note,
.main-content .sub,
.main-content .lbl,
.main-content .label,
.main-content .k {
    font-size: var(--fs-sm) !important;
    color: var(--text-muted) !important;
    font-weight: 500 !important;
    line-height: var(--lh-normal);
}
/* Green KPI header bars (Reports, etc.) stay white — must beat .lbl muted above */
.main-content .report-kpi-cell .lbl,
.main-content .report-kpi-cell span.lbl {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
.main-content .val,
.main-content .value,
.main-content .v {
    color: var(--text-primary) !important;
    font-weight: 700;
}
/* Large KPI numbers only — do not apply to every .v/.val (e.g. survey profile fields) */
.main-content .dash-metric .value,
.main-content .dash-kpi .val,
.main-content .dash-kpi .value,
.main-content .kpi-card .val,
.main-content .kpi-card .value {
    font-size: var(--fs-2xl);
}
.main-content .form-control,
.main-content select,
.main-content input,
.main-content textarea,
.main-content button:not(.btn-primary):not(.primary),
.main-content .btn:not(.btn-primary):not(.primary) {
    font-family: var(--font-sans);
    font-size: var(--fs-base) !important;
    color: var(--text-primary) !important;
}
.main-content .btn {
    font-weight: 700;
}
.main-content .btn-primary,
.main-content .btn.btn-primary,
.main-content a.btn-primary,
.main-content .btn.primary,
.main-content button.btn-primary,
.main-content button.primary {
    color: #ffffff !important;
}
/* Colored action buttons (green / red / blue) keep light text */
.main-content button[style*="color:#fff"],
.main-content button[style*="color: #fff"],
.main-content button[style*="color:#ffffff"],
.main-content button[style*="color: #ffffff"],
.main-content a[style*="color:#fff"],
.main-content a[style*="color: #fff"],
.main-content .btn-sm[style*="color:#fff"],
.main-content .btn-sm[style*="color: #fff"] {
    color: #ffffff !important;
}
.page-toolbar h1,
.page-toolbar h2 {
    color: var(--text-primary) !important;
    font-family: var(--font-sans);
    font-size: var(--fs-xl) !important;
}
.page-toolbar p {
    color: var(--text-muted) !important;
    font-size: var(--fs-sm) !important;
    font-weight: 500 !important;
    line-height: var(--lh-normal);
}

/* Lock dashboard shell: no body scroll, sidebar stays fixed height */
body:has(.dashboard-wrapper) {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
}
.dashboard-wrapper {
    display: flex;
    width: 100%;
    max-width: 100%;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden !important;
    background: #f4f7fe;
}
.dashboard-wrapper > .sidebar,
#adminSidebar,
#alumniSidebar {
    flex-shrink: 0;
    width: 216px;
    min-width: 216px;
    max-width: 216px;
}
.dashboard-wrapper > .dashboard-content,
.dashboard-wrapper > div.dashboard-content {
    overflow: hidden !important;
    min-height: 0;
    min-width: 0;
    flex: 1 1 auto;
}
.dashboard-wrapper > .dashboard-content > nav,
.dashboard-wrapper > div.dashboard-content > nav {
    min-width: 0;
    gap: 0.75rem;
}
.dashboard-wrapper > .dashboard-content > nav h1,
.dashboard-wrapper > div.dashboard-content > nav h1,
.topbar-welcome {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Sidebar brand + top bar: identical height so bottoms align */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    padding: 0.5rem 0.65rem;
    height: auto;
    min-height: var(--header-h);
    max-height: none;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    border-left: none;
    flex-shrink: 0;
    overflow: visible;
    cursor: pointer;
    position: relative;
    z-index: 2;
}
.sidebar-brand:hover,
.sidebar-brand:active,
.sidebar-brand:focus,
.sidebar-brand.is-active {
    background-color: transparent !important;
    transform: none !important;
    border-left: none !important;
    outline: none;
}
.sidebar-brand-logo-wrap {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    overflow: visible;
}
.sidebar-brand-logo {
    background: #fff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #F6A800;
    flex-shrink: 0;
}
.sidebar-brand-cam {
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #F6A800;
    color: #065F2B;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    border: 2px solid #043e1c;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 3;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
    pointer-events: auto;
    cursor: pointer;
}
.sidebar-brand.is-active .sidebar-brand-logo {
    box-shadow: none;
}
.sidebar-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sidebar-brand-text {
    flex: 1 1 auto;
    min-width: 0;
}
.sidebar-brand-title {
    font-size: 11.5px !important;
    line-height: 1.15 !important;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -0.45px;
    white-space: nowrap;
    overflow: visible;
}
.sidebar-brand-sub {
    font-size: 9.5px !important;
    line-height: 1.2 !important;
    font-weight: 800;
    color: #F6A800;
    text-transform: uppercase;
    letter-spacing: 0.1px;
    white-space: nowrap;
    overflow: visible;
    margin-top: 0.1rem;
}
.topbar {
    background: #fff;
    padding: 0.55rem 1.5rem;
    height: var(--header-h);
    min-height: var(--header-h);
    max-height: var(--header-h);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-bottom: 3px solid #F6A800;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    flex-shrink: 0;
    box-sizing: border-box;
}
.topbar h1 {
    margin: 0;
    font-size: var(--fs-lg);
    font-weight: 700;
    color: #065F2B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    line-height: 1.2;
}
.topbar-welcome {
    margin: 0;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-decoration: none;
    display: block;
    max-width: 220px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.topbar-user {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}
.topbar-profile {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: none;
    text-decoration: none;
    color: inherit;
    padding: 0.2rem 0.45rem 0.2rem 0.65rem;
    margin: 0;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    font: inherit;
    transition: background 0.15s, border-color 0.15s;
    min-width: 0;
    max-width: 100%;
}
.topbar-profile:hover,
.topbar-user.is-open .topbar-profile,
.topbar-profile.is-active {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.topbar-caret {
    font-size: var(--fs-sm);
    color: #64748b;
    transition: transform 0.15s;
    flex-shrink: 0;
}
.topbar-user.is-open .topbar-caret {
    transform: rotate(180deg);
    color: #065F2B;
}
.topbar-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 200px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
    z-index: 50;
    padding: 0.4rem;
}
.topbar-user.is-open .topbar-menu {
    display: block;
}
.topbar-menu a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 0.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: var(--fs-base);
    color: var(--text-primary);
}
.topbar-menu a i {
    font-size: var(--fs-md);
    color: #065F2B;
}
.topbar-menu a:hover {
    background: #f8fafc;
}
.topbar-menu a.is-logout {
    color: #ef4444;
    margin-top: 0.15rem;
    border-top: 1px solid #f1f5f9;
    border-radius: 0 0 8px 8px;
}
.topbar-menu a.is-logout i {
    color: #ef4444;
}
.topbar-menu a.is-logout:hover {
    background: #fef2f2;
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
}
.topbar-icon {
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding-left: 0.75rem;
    border-left: 1px solid #e2e8f0;
    min-height: 36px;
}
.topbar-bell {
    position: relative;
    color: #065F2B;
    background: #ecfdf5;
    border: 1.5px solid #a7f3d0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
.topbar-bell:hover,
.topbar-bell.is-active {
    background: #d1fae5;
    border-color: #6ee7b7;
}
.topbar-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    background: #065F2B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    font-weight: 800;
    font-size: var(--fs-sm);
    border: 2px solid #F6A800;
    flex-shrink: 0;
    box-sizing: border-box;
}
.topbar-avatar img {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    object-fit: cover;
    display: block;
}
.gts-pw-expiry-banner {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin: 0 1rem 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: var(--fs-sm);
    font-weight: 700;
}
.gts-pw-expiry-banner.is-due {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}
.gts-pw-expiry-banner i { font-size: var(--fs-md); flex-shrink: 0; }
.gts-pw-expiry-banner span { flex: 1 1 220px; }
.gts-pw-expiry-banner a {
    font-weight: 800;
    color: inherit;
    text-decoration: underline;
}

/* Footer — centered credits, About/Privacy on the right */
.site-footer {
    background: #f6fbf8;
    border-top: 1px solid rgba(6, 95, 43, 0.08);
    box-shadow: none;
    padding: 0.42rem 1.25rem;
    margin-top: 0;
    color: #065F2B;
    font-size: var(--fs-sm);
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    min-height: 0;
    text-align: center;
    display: block;
}
.site-footer-inner {
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    gap: 0.12rem 0.65rem;
    text-align: center;
}
.site-footer-brand {
    display: contents;
}
.site-footer-devs,
.site-footer-credit,
.site-footer-rights {
    margin: 0;
    font-weight: 600;
    font-size: var(--fs-xs);
    color: #047857;
    line-height: 1.45;
    text-align: center;
}
.site-footer-copy {
    margin: 0;
    font-size: var(--fs-xs);
    font-weight: 800;
    color: #065F2B;
    line-height: 1.35;
    text-align: center;
}
.site-footer-sys {
    display: none;
    font-weight: 800;
}
.site-footer-meta {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem 0.65rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: #047857;
    line-height: 1.4;
}
.site-footer-sep { color: #94a3b8; font-weight: 700; }
.site-footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
    margin: 0;
    flex-shrink: 0;
    width: auto;
}
.site-footer-meta a,
.site-footer-links a {
    color: #065F2B;
    text-decoration: none;
    font-weight: 800;
    font-size: var(--fs-xs);
    padding: 0;
    border-radius: 0;
    white-space: nowrap;
}
.site-footer-meta a:hover,
.site-footer-links a:hover {
    color: #F6A800;
    background: transparent;
}

/* Public docs (About, Privacy) — pin the same footer to the bottom like login/survey */
body.public-doc {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    background-color: var(--bg-color);
}
body.public-doc > main {
    flex: 1 0 auto;
}
body.public-doc > .site-footer {
    margin-top: auto;
}

/* Preferred: footer inside the content column — no white bar under sidebar */
.dashboard-wrapper > div > .site-footer {
    margin-left: 0;
    width: 100%;
}
@media (min-width: 901px) {
    .site-footer-inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 0.2rem 1rem;
    }
    .site-footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        grid-column: 2;
    }
    .site-footer-sys {
        display: inline;
    }
    .site-footer-links {
        justify-content: flex-end;
        grid-column: 3;
        justify-self: end;
    }
}
@media (max-width: 900px) {
    .site-footer {
        padding: 0.32rem 0.75rem calc(0.32rem + env(safe-area-inset-bottom, 0px));
    }
}


/* =========================================
   MOBILE SIDEBAR + RESPONSIVE ADMIN UI
========================================= */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1200;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    font-size: var(--fs-xl);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(6, 95, 43, 0.35);
    align-items: center;
    justify-content: center;
}
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1090;
}
.sidebar-link:hover {
    background: rgba(255,255,255,0.08) !important;
}
.page-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.page-toolbar h2 {
    font-size: var(--fs-xl);
    font-weight: 800;
    color: var(--text-primary);
    line-height: var(--lh-tight);
}
.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media screen and (max-width: 1024px) {
    div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .notif-layout,
    div[style*="grid-template-columns: 2fr 1.2fr"],
    div[style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media screen and (max-width: 1366px) {
    .main-content {
        padding: 1.25rem 1.35rem;
    }
    .dashboard-wrapper > .dashboard-content > nav,
    .topbar {
        padding: 0.5rem 1.25rem !important;
        height: var(--header-h) !important;
        min-height: var(--header-h) !important;
        max-height: var(--header-h) !important;
    }
    .dashboard-wrapper > .dashboard-content > nav h1,
    .topbar h1 {
        font-size: var(--fs-md) !important;
    }
    .topbar-welcome {
        font-size: var(--fs-sm) !important;
        max-width: 200px;
    }
    .sidebar-brand {
        height: auto !important;
        min-height: var(--header-h) !important;
        max-height: none !important;
        padding: 0.55rem 1rem !important;
    }
    .dir-kpis,
    .emp-kpis,
    .auth-kpis,
    .nt-kpis,
    div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .sv-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    .dash-kpis {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
    .dash-grid-main {
        grid-template-columns: 1fr 1fr !important;
    }
    .dash-status {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    }
    .dash-grid-bottom {
        grid-template-columns: 1fr !important;
    }
    .page-toolbar {
        align-items: flex-start;
        gap: 0.65rem;
        margin-bottom: 1rem;
    }
}

@media screen and (max-width: 1100px) {
    .mobile-nav-toggle { display: inline-flex; }
    .dashboard-wrapper > .sidebar,
    #adminSidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1100;
        transform: translateX(-105%);
        transition: transform 0.28s ease;
        width: min(216px, 86vw) !important;
        box-shadow: 8px 0 30px rgba(0,0,0,0.2);
    }
    body.sidebar-open #adminSidebar,
    body.sidebar-open .dashboard-wrapper > .sidebar {
        transform: translateX(0);
    }
    body.sidebar-open .sidebar-overlay {
        display: block;
    }
    .dashboard-wrapper {
        flex-direction: column !important;
    }
    .main-content {
        padding: 1.25rem !important;
        padding-top: 4.5rem !important;
    }
    .dashboard-wrapper > .dashboard-content > nav,
    .dashboard-wrapper > div > nav,
    .topbar {
        padding: 0.5rem 1.1rem 0.5rem 3.75rem !important;
        height: var(--header-h) !important;
        min-height: var(--header-h) !important;
        max-height: var(--header-h) !important;
    }
    /* Free space for Welcome + name (like compact mobile headers) */
    .dashboard-wrapper > .dashboard-content > nav h1,
    .dashboard-wrapper > div > nav h1,
    .topbar h1 {
        display: none !important;
    }
    .topbar-right {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
        gap: 0.5rem;
        justify-content: flex-end;
    }
    .topbar-icon {
        display: none;
    }
    .topbar-actions {
        padding-left: 0.5rem;
        gap: 0.55rem;
        min-width: 0;
        flex: 1 1 auto;
        justify-content: flex-end;
        border-left: 1px solid #e2e8f0;
    }
    .topbar-user {
        min-width: 0;
        flex: 1 1 auto;
        justify-content: flex-end;
        max-width: calc(100vw - 7.5rem);
    }
    .topbar-profile {
        gap: 0.5rem;
        padding: 0.15rem 0.25rem 0.15rem 0.35rem;
        max-width: 100%;
        width: 100%;
        justify-content: flex-end;
    }
    .topbar-welcome {
        display: block;
        flex: 1 1 auto;
        max-width: none;
        width: auto;
        font-size: var(--fs-sm) !important;
        font-weight: 700;
        color: var(--text-primary);
        text-align: right;
    }
    .topbar-welcome-prefix {
        display: inline;
    }
    .topbar-avatar {
        width: 36px;
        height: 36px;
    }
    .topbar-caret {
        display: none;
    }
    .dash-kpis {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
    .dash-status {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    }
    .dash-grid-main {
        grid-template-columns: 1fr !important;
    }
    .glass-nav {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.85rem 4% !important;
    }
    .survey-container {
        margin: 1.25rem auto !important;
        border-radius: 10px !important;
        max-width: calc(100% - 1.5rem);
    }
    .form-section div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media screen and (max-width: 560px) {
    div[style*="grid-template-columns: repeat(4, 1fr)"],
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    .topbar-welcome {
        font-size: var(--fs-sm) !important;
    }
    .topbar-user {
        max-width: calc(100vw - 6.5rem);
    }
}

/* =========================================
   FINAL: white text on every green / primary surface
   (wins over main-content text-primary / muted locks)
========================================= */
th,
.table-modern th,
.main-content th,
.main-content th *,
.main-content .table-modern th,
.main-content .table-modern th *,
.main-content .report-meta th,
.main-content .report-data th,
.main-content .report-kpi-cell .lbl,
.main-content .report-kpi-cell .lbl *,
.main-content .btn-primary,
.main-content .btn-primary *,
.main-content a.btn-primary,
.main-content a.btn-primary *,
.main-content .btn.primary,
.main-content .btn-sm.primary,
.main-content .sv-btn.primary,
.main-content .um-btn.primary,
.main-content .st-btn.primary,
.main-content .sb-btn.primary,
.main-content .av-btn-primary,
.main-content [style*="background:var(--primary)"],
.main-content [style*="background: var(--primary)"],
.main-content [style*="background:#065F2B"],
.main-content [style*="background: #065F2B"],
.main-content [style*="background-color:var(--primary)"],
.main-content [style*="background-color: var(--primary)"],
.main-content [style*="background-color:#065F2B"],
.main-content [style*="background-color: #065F2B"] {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* About — shared by admin and alumni */
.ab-alert {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    font-size: var(--fs-sm);
}
.ab-alert.ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }
.ab-alert.err { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.ab-purpose {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.15rem 1.25rem;
    margin-bottom: 1rem;
    border-top: 3px solid #F6A800;
}
.ab-kicker {
    font-size: var(--fs-2xs);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #065F2B;
    margin: 0 0 0.4rem;
}
.ab-purpose h3 {
    margin: 0 0 0.55rem;
    font-size: var(--fs-lg);
    font-weight: 800;
    color: #0f172a;
}
.ab-purpose p {
    margin: 0 0 0.65rem;
    color: #475569;
    font-size: var(--fs-sm);
    font-weight: 500;
    line-height: 1.55;
}
.ab-purpose p:last-child { margin-bottom: 0; }
.ab-devs-title {
    font-size: var(--fs-2xs);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 0 0 0.75rem;
}
.ab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.95rem;
}
.ab-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem 1.2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}
.ab-avatar-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    cursor: pointer;
    display: block;
}
.ab-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: #065F2B;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: var(--fs-lg);
    border: 3px solid #F6A800;
}
.ab-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-avatar-cam {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xs);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.ab-avatar-wrap:hover .ab-avatar-cam { transform: scale(1.08); }
.ab-name { margin: 0 0 0.25rem; font-size: var(--fs-md); font-weight: 800; color: #0f172a; }
.ab-role {
    display: inline-block;
    background: #ecfdf5;
    color: #065F2B;
    border: 1px solid #a7f3d0;
    border-radius: 99px;
    padding: 0.12rem 0.6rem;
    font-size: var(--fs-2xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}
.ab-meta { margin: 0; font-size: var(--fs-sm); font-weight: 600; color: #64748b; }
.ab-hint { margin: 0.55rem 0 0; font-size: var(--fs-xs); color: #94a3b8; font-weight: 600; }
.ab-lock-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.ab-lock-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    border-radius: 8px;
    padding: 0.5rem 0.9rem;
    font-weight: 800;
    font-size: var(--fs-sm);
    cursor: pointer;
}
@media (max-width: 900px) {
    .ab-grid { grid-template-columns: 1fr; }
}


