/* =========================================================================
   APP.CSS — GTU Portal — SINGLE UNIFIED STYLESHEET
   Merged from: app.css (global shell) + dashboard "Aurora Console" CSS
                + studentbulkupload inline styles.
   Reference this ONE file (plus bootstrap.min.css) on every ASP.NET page.
   Theme colors are UNCHANGED — only structure was deduplicated and
   responsive rules were strengthened.

   Sections:
     1. Font Imports
     2. Color Variables & Theme Tokens (global)
     3. Global Base & Typography
     4. Buttons & Action Links
     5. Universal Form Components & Input Wrappers
     6. File Upload & Column-Mapping Component
     7. Badges, Status Pills & Tags
     8. Cards, Containers & UI Alert Helpers
     9. Data Tables & Pagination (incl. Student Bulk Upload table variant)
    10. Modals
    11. Page Toolbar & Empty States
    12. Sidebar & App Shell Layout (Post-Login Pages)
    13. GTU Login Page Layout
    14. Dashboard — "Aurora Console" (scoped to body.dash-body)
    15. Responsive Rules (consolidated, mobile-first additions)
   ========================================================================= */


/* =========================================================================
   1. FONT IMPORTS
   Space Grotesk = dashboard headings, Inter = body/UI text everywhere,
   JetBrains Mono = tabular/numeric data (dashboard figures, code-like ids).
   ========================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500;600&display=swap');


/* =========================================================================
   2. COLOR VARIABLES & THEME TOKENS (GLOBAL)
   Change the theme for the ENTIRE portal by editing this block.
   Values are exactly as originally defined — nothing changed here.
   ========================================================================= */
:root {
    /* Brand Palette: GTU Navy, Indigo & Gold */
    --primary: #163b73;
    --primary-light: #2d5ca6;
    --primary-dark: #0f284a;
    --accent-cta: #4f46e5;
    --accent-cta-hover: #4338ca;
    --gold: #d4af37;
    --gold-light: #f6d365;
    /* Backgrounds & Text */
    --bg-canvas: #f5f7fb;
    --bg-card: #ffffff;
    --text-primary: #233044;
    --text-secondary: #6b7280;
    --text-muted: #64748b;
    --border-subtle: #dce3ee;
    /* Radii & Typography */
    --radius-btn: 12px;
    --radius-card: 20px;
    --font-heading: 'Inter', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
    /* Sidebar Layout Tokens */
    --sidebar-bg: #102a43;
    --sidebar-text: #dadcf0;
    --sidebar-active-bg: #4f46e5;
    --sidebar-active-tint: rgba(79, 70, 229, 0.18);
    /* Login Page Tokens */
    --login-bg-start: #102a43;
    --login-bg-end: #163b73;
    /* Semantic Status Colors */
    --color-success: #16a34a;
    --color-success-bg: rgba(22, 163, 74, 0.12);
    --color-danger: #dc2626;
    --color-danger-bg: rgba(220, 38, 38, 0.12);
    --color-warning: #d97706;
    --color-warning-bg: rgba(217, 119, 6, 0.12);
    --color-neutral: #6b7280;
    --color-neutral-bg: rgba(107, 114, 128, 0.12);
}


/* =========================================================================
   3. GLOBAL BASE & TYPOGRAPHY
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
}

img { max-width: 100%; }

.text-secondary { color: var(--text-secondary) !important; }
.text-muted-sm { font-size: 12px; color: #475569; line-height: 1.4; }
.text-dim { color: #94a3b8; }
.text-dark { color: #0f172a; }
.text-muted { color: #64748b; }
.text-center { text-align: center; }
.text-end { text-align: right; }
.fw-semibold { font-weight: 600; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12.5px; }

.section-subtitle {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted, #64748b);
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.mb-4 { margin-bottom: 1.5rem !important; }


/* =========================================================================
   4. BUTTONS & ACTION LINKS
   ========================================================================= */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 24px;
    background: linear-gradient(135deg, var(--accent-cta), var(--primary));
    border: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-btn);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}
.btn-primary-custom:hover, .btn-primary-custom:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.35);
    color: #ffffff;
    text-decoration: none;
}
.btn-primary-custom:active { transform: translateY(0); }

.btn-outline-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 20px;
    background-color: transparent;
    border: 1.5px solid var(--border-subtle);
    color: var(--text-primary);
    border-radius: var(--radius-btn);
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-outline-custom:hover, .btn-outline-custom:focus {
    background-color: #ffffff;
    border-color: var(--accent-cta);
    color: var(--accent-cta);
    text-decoration: none;
}

.btn-danger-custom {
    background-color: var(--color-danger);
    border: none;
    color: #ffffff;
    border-radius: var(--radius-btn);
    font-weight: 600;
    padding: 10px 20px;
}
.btn-danger-custom:hover, .btn-danger-custom:focus {
    background-color: #b91c1c;
    color: #ffffff;
}

.btn-success-custom {
    background-color: var(--color-success);
    border: none;
    color: #ffffff;
    border-radius: var(--radius-btn);
    font-weight: 600;
    padding: 10px 20px;
}
.btn-success-custom:hover, .btn-success-custom:focus {
    background-color: #15803d;
    color: #ffffff;
}

.btn-view-custom {
    background-color: var(--bg-canvas);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    border-radius: 8px;
    font-weight: 600;
    padding: 6px 12px;
}
.btn-view-custom:hover, .btn-view-custom:focus {
    background-color: #ffffff;
    border-color: var(--accent-cta);
    color: var(--accent-cta);
}

.btn-revert-custom {
    background-color: var(--color-warning-bg);
    border: 1px solid var(--color-warning);
    color: var(--color-warning);
    border-radius: 8px;
    font-weight: 600;
    padding: 6px 12px;
}
.btn-revert-custom:hover, .btn-revert-custom:focus {
    background-color: var(--color-warning);
    color: #ffffff;
}

/* Table row action buttons */
.action-buttons { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.action-buttons .btn-xs {
    padding: 4px 10px;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
    border-radius: 6px;
}

.table-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}
.table-action-btn:hover, .table-action-btn:focus {
    background: var(--bg-canvas);
    color: var(--accent-cta);
    text-decoration: none;
}
.table-action-btn.danger:hover, .table-action-btn.danger:focus {
    color: var(--color-danger);
    background: var(--color-danger-bg);
}

/* Student Bulk Upload table action buttons (compact pill variant) */
.action-btn-group {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-action-resume {
    background: #e0e7ff;
    color: #3730a3;
}
.btn-action-resume:hover { background: #c7d2fe; color: #312e81; }
.btn-action-delete {
    background: #fef2f2;
    color: #dc2626;
}
.btn-action-delete:hover { background: #fee2e2; color: #991b1b; }


/* =========================================================================
   5. UNIVERSAL FORM COMPONENTS & INPUT WRAPPERS
   ========================================================================= */
.form-group { margin-bottom: 16px; }
.input-label, .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.input-wrapper { position: relative; }
.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-cta);
    font-size: 15px;
    z-index: 2;
    pointer-events: none;
}

.form-control {
    height: 48px;
    width: 100%;
    border-radius: 12px;
    border: 1.5px solid var(--border-subtle);
    padding-left: 46px;
    padding-right: 16px;
    font-size: 14px;
    color: var(--text-primary);
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;
}
.form-control:focus {
    border-color: var(--accent-cta);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    outline: none;
}
.form-control::placeholder { color: #9aa5b1; }
.form-control.no-icon { padding-left: 16px; }

/* Select dropdown reset (custom chevron, replaces native arrow) */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%20233044' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Password toggle button */
.btn-toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    z-index: 3;
    transition: color 0.2s ease;
}
.btn-toggle-password:hover { color: var(--primary); }

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.checkbox-row label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-right: 18px !important;
    margin-bottom: 0 !important;
    font-weight: 500;
    cursor: pointer;
}
.checkbox-row input[type="radio"],
.checkbox-row input[type="checkbox"] {
    margin: 0 !important;
    cursor: pointer;
}

.checkbox-scroll-box {
    max-height: 200px;
    overflow-y: auto;
    padding: 12px;
    background: var(--bg-canvas, #f8fafc);
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: 8px;
}

.form-divider {
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 20px 0;
}

/* Modern grid helper layouts (collapse handled in Section 15) */
.form-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }


/* =========================================================================
   6. FILE UPLOAD & COLUMN-MAPPING COMPONENT
   ========================================================================= */
.upload-inline-group {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 680px;
    flex-wrap: wrap;
}

.file-upload-wrapper { position: relative; flex: 1 1 240px; min-width: 0; }

.file-upload-input {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 2 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.file-upload-label {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: 42px !important;
    padding: 0 12px !important;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    margin: 0 !important;
    cursor: pointer;
    transition: all 0.2s ease;
}
.file-upload-wrapper:hover .file-upload-label {
    border-color: #6366f1;
    background-color: #f8fafc;
}

.upload-icon { color: #64748b; margin-right: 8px !important; flex-shrink: 0 !important; }

.file-name-text {
    flex: 1 1 auto !important;
    font-size: 13.5px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}
.file-name-text.selected { color: #0f172a; font-weight: 500; }

.btn-browse {
    background-color: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 5px;
    margin-left: 10px !important;
    flex-shrink: 0 !important;
    display: inline-block;
}

.btn-read-headers {
    height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
}


/* =========================================================================
   7. BADGES, STATUS PILLS & TAGS
   ========================================================================= */
.badge-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.badge-success { background: var(--color-success-bg); color: var(--color-success); }
.badge-danger  { background: var(--color-danger-bg);  color: var(--color-danger); }
.badge-warning { background: var(--color-warning-bg); color: var(--color-warning); }
.badge-neutral { background: var(--color-neutral-bg); color: var(--color-neutral); }

.badge-lot {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
}

.scope-tag { font-size: 12px; font-weight: 500; color: #334155; }

/* Generic status badge (used on Student Bulk Upload table) */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.2px;
}
.status-pending {
    background-color: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}


/* =========================================================================
   8. CARDS, CONTAINERS & UI ALERT HELPERS
   ========================================================================= */
.card-custom {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    padding: 24px;
    margin-bottom: 20px;
}

.gold-rule {
    width: 50px;
    height: 3px;
    border-radius: 10px;
    margin: 16px auto 20px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.alert-info-box {
    background: #f0f7ff;
    border: 1px solid #cce3fd;
    border-radius: 8px;
    padding: 12px 16px;
    color: #1e40af;
}


/* =========================================================================
   9. DATA TABLES & PAGINATION
   One canonical table shell (.data-table-wrap / .data-table) used by both
   the general portal tables and the Student Bulk Upload table. Column-width
   and pill helpers unique to Bulk Upload are appended below.
   ========================================================================= */
.data-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table.data-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 13.5px;
}
table.data-table thead th {
    background: var(--bg-canvas);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-align: left;
    padding: 14px 18px;
    border-bottom: 1.5px solid var(--border-subtle);
    white-space: nowrap;
}
table.data-table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 14px;
    color: var(--text-primary);
    vertical-align: middle;
}
table.data-table tbody tr:last-child td { border-bottom: none; }
table.data-table tbody tr:hover,
table.data-table tr.table-row:hover { background: rgba(245, 247, 251, 0.6); }

/* Student Bulk Upload — column widths */
.col-exam       { width: 12%; }
.col-admission  { width: 30%; }
.col-lot        { width: 10%; }
.col-status     { width: 22%; }
.col-date       { width: 16%; }
.col-actions    { width: 10%; }

.empty-table-state {
    padding: 32px 16px;
    text-align: center;
    color: #94a3b8;
    font-weight: 500;
}

.pagination-wrap { padding: 16px; text-align: center; }
.pagination-wrap a, .pagination-wrap span {
    display: inline-block;
    padding: 6px 14px;
    margin: 2px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.pagination-wrap a { color: var(--text-primary); border: 1px solid var(--border-subtle); }
.pagination-wrap a:hover { background: var(--bg-canvas); }
.pagination-wrap span { background: var(--accent-cta); color: #ffffff; border: 1px solid var(--accent-cta); }


/* =========================================================================
   10. MODALS
   ========================================================================= */
.modal-content {
    border-radius: var(--radius-card);
    border: none;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}
.modal-header {
    border-bottom: 1px solid var(--border-subtle);
    padding: 20px 24px;
    background: var(--bg-card);
}
.modal-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    font-size: 18px;
}
.modal-body { padding: 24px; }
.modal-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 16px 24px;
    background: #fdfdfd;
}

.server-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(16, 42, 67, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.server-modal {
    width: 100%;
    max-width: 720px;
    max-height: 85vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: var(--radius-card);
}


/* =========================================================================
   11. PAGE TOOLBAR & EMPTY STATES
   ========================================================================= */
.page-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.page-toolbar h5 { margin: 0; font-size: 20px; }
.page-toolbar .subtitle { margin: 2px 0 0; font-size: 13px; color: var(--text-secondary); }

.empty-state { text-align: center; padding: 56px 20px; color: var(--text-secondary); }
.empty-state .glyphicon { font-size: 36px; opacity: 0.3; display: block; margin-bottom: 12px; }


/* =========================================================================
   12. SIDEBAR & APP SHELL LAYOUT (Post-Login Pages)
   ========================================================================= */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    position: fixed;
    top: 0; left: 0; bottom: 0;
    overflow-y: auto;
    z-index: 1030;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 16px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-logo-medallion {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #ffffff;
    padding: 2px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.sidebar-logo-medallion img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }

.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-university {
    font-size: 10px; font-weight: 700; color: var(--gold-light, #f6d365);
    text-transform: uppercase; letter-spacing: 0.4px; line-height: 1.2;
    white-space: normal; margin-bottom: 2px;
}
.brand-title { font-size: 13px; font-weight: 700; color: #ffffff; line-height: 1.25; letter-spacing: 0.2px; }
.brand-subtitle { font-size: 11px; font-weight: 600; color: var(--gold-light, #f6d365); text-transform: uppercase; letter-spacing: 0.6px; }

.sidebar-user { padding: 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.sidebar-user-name { font-weight: 600; font-size: 14px; color: #ffffff; }
.sidebar-user-role { font-size: 11px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.6px; color: var(--gold-light); }

.sidebar-menu { list-style: none; margin: 0; padding: 14px 10px; }
.sidebar-menu li { margin: 3px 0; }
.sidebar-menu .nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-radius: 10px;
    border-left: 3px solid transparent;
    color: var(--sidebar-text); text-decoration: none;
    font-size: 14px; opacity: 0.85;
    transition: all 0.2s ease;
}
.sidebar-menu .nav-link:hover { background: rgba(255, 255, 255, 0.06); color: #ffffff; opacity: 1; text-decoration: none; }
.sidebar-menu .nav-link.active {
    background: var(--sidebar-active-tint);
    border-left-color: var(--gold);
    color: #ffffff; font-weight: 600; opacity: 1;
}
.sidebar-menu .nav-link .glyphicon { font-size: 15px; width: 18px; text-align: center; }

.main-content { margin-left: 280px; flex: 1; width: 100%; min-height: 100vh; background: var(--bg-canvas); transition: margin-left 0.3s ease; }

.topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 28px; background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
    flex-wrap: wrap; gap: 10px;
    position: sticky; top: 0; z-index: 1010;
}
.page-title { margin: 0; flex: 1; font-size: 18px; color: var(--primary); }
.page-body { padding: 28px; }

.sidebar-toggle {
    display: none; flex-direction: column; justify-content: space-between;
    width: 22px; height: 16px; background: transparent; border: none;
    padding: 0; cursor: pointer;
}
.sidebar-toggle span { display: block; height: 2px; width: 100%; background: var(--text-primary); border-radius: 2px; }

.sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.5); z-index: 1020;
}
.sidebar-overlay.sidebar-overlay-visible { display: block; }


/* =========================================================================
   13. GTU LOGIN PAGE LAYOUT
   ========================================================================= */
.login-shell {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(79, 70, 229, 0.12), transparent 35%),
        radial-gradient(circle at bottom right, rgba(30, 58, 138, 0.12), transparent 35%),
        linear-gradient(135deg, var(--login-bg-start), var(--login-bg-end));
    position: relative;
    padding: 20px 0;
}
.login-shell::before {
    content: ""; position: absolute; width: 450px; height: 450px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.04); top: -150px; left: -150px; pointer-events: none;
}
.login-shell::after {
    content: ""; position: absolute; width: 350px; height: 350px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.03); right: -100px; bottom: -100px; pointer-events: none;
}

.login-layout { width: 100%; display: flex; justify-content: center; align-items: center; z-index: 1; }
.login-container { width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; padding: 0 16px; }

.login-logo-section { width: 100%; text-align: center; margin-bottom: 20px; }
.main-logo {
    width: 80px; height: 80px; background: #ffffff; border-radius: 50%;
    padding: 6px; margin: 0 auto 14px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.20);
    object-fit: contain;
}
.gtu-name { color: #ffffff; font-size: 22px; line-height: 1.25; margin-bottom: 6px; font-weight: 700; }
.portal-name { color: #ffd54f; font-size: 15px; font-weight: 600; }

.login-card {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px);
    border-radius: var(--radius-card);
    padding: 32px 32px 28px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    width: 100%;
    animation: cardFade 0.4s ease-out;
}
.login-card::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent-cta), var(--gold));
}

.portal-header { text-align: center; }
.portal-header h3 { font-size: 22px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.portal-subtitle { color: var(--text-secondary); font-size: 14px; }

.captcha-box {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px; border: 1.5px solid var(--border-subtle);
    border-radius: 12px; background: #f8fbff; margin-bottom: 10px; flex-wrap: wrap; gap: 8px;
}
.captcha-box img { height: 38px; border-radius: 6px; object-fit: contain; }

.refresh-btn {
    color: var(--accent-cta); font-weight: 600; font-size: 13px;
    display: inline-flex; align-items: center; gap: 5px;
    text-decoration: none; transition: color 0.2s ease;
}
.refresh-btn:hover { color: var(--primary); text-decoration: none; }

.login-error { display: block; margin-bottom: 14px; text-align: left; font-size: 13px; font-weight: 500; color: var(--color-danger); }

.otp-header { text-align: center; }
.otp-icon {
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cta), var(--primary));
    color: #ffffff; display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin: 0 auto 14px;
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.25);
}
.otp-title { font-size: 22px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.otp-text { color: var(--text-secondary); font-size: 14px; line-height: 1.5; }
.otp-input { letter-spacing: 6px; font-size: 18px; font-weight: 700; text-align: center; padding-left: 16px; }

.otp-links { display: flex; justify-content: space-between; margin-top: 18px; flex-wrap: wrap; gap: 8px; }
.back-link, .resend-link { color: var(--accent-cta); font-size: 13px; font-weight: 600; text-decoration: none; transition: color 0.2s ease; }
.back-link:hover, .resend-link:hover { color: var(--primary); text-decoration: none; }

.login-footer { text-align: center; margin-top: 20px; color: rgba(255, 255, 255, 0.85); font-size: 13px; line-height: 1.6; }

@keyframes cardFade {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}


/* =========================================================================
   14. DASHBOARD — "AURORA CONSOLE"
   Scoped entirely under body.dash-body so its own token names (--primary,
   --surface, --ink, etc.) never clash with the global tokens in Section 2.
   Colors are exactly as originally defined — nothing changed.
   ========================================================================= */
body.dash-body {
    --base: #F5F6FB;
    --surface: #FFFFFF;
    --ink: #1E1B4B;
    --muted: #64748B;
    --line: #E4E7F2;
    --primary: #4338CA;
    --primary-soft: #EEF0FD;
    --gradient: linear-gradient(135deg, #6366F1 0%, #4338CA 100%);
    --success: #059669;
    --success-soft: #ECFDF5;
    --pending: #D97706;
    --pending-soft: #FFFBEB;
    --danger: #DC2626;
    --danger-soft: #FEF2F2;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(30, 27, 75, 0.04), 0 8px 24px -12px rgba(30, 27, 75, 0.10);

    margin: 0;
    background: var(--base);
    color: var(--ink);
    font-family: 'Inter', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.dash-wrap { max-width: 1320px; margin: 0 auto; padding: 28px 24px 64px; }

/* ---------- Header ---------- */
.dash-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.dash-title-group { display: flex; align-items: center; gap: 14px; }
.dash-mark { width: 40px; height: 40px; border-radius: 11px; background: var(--gradient); flex-shrink: 0; }
.dash-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 22px; margin: 0; letter-spacing: -0.02em; }
.dash-subtitle { color: var(--muted); font-size: 13px; margin-top: 2px; }
.dash-subtitle span { font-family: 'JetBrains Mono', monospace; font-weight: 600; color: var(--ink); }

.dash-filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dash-filter label { font-size: 12px; color: var(--muted); font-weight: 500; }
.dash-filter select {
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
    padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line);
    background: var(--surface); color: var(--ink); min-width: 200px;
    box-shadow: var(--shadow); cursor: pointer;
}
.dash-refresh {
    display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted);
    background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
    padding: 9px 12px; cursor: pointer; font-weight: 500;
}
.dash-refresh:hover { color: var(--primary); border-color: var(--primary); }

/* ---------- Action banner (phase gaps) ---------- */
.dash-banner {
    display: none; align-items: center; gap: 12px; background: var(--pending-soft);
    border: 1px solid #FDE68A; color: #92400E; border-radius: var(--radius);
    padding: 13px 18px; margin-bottom: 20px; font-size: 13px; font-weight: 500;
}
.dash-banner .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pending); flex-shrink: 0; }

/* ---------- KPI grid ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpi-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px 18px 16px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.kpi-label { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.kpi-value { font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 26px; margin-top: 8px; line-height: 1; }
.kpi-value.mini { font-size: 20px; }
.kpi-sub { font-size: 12px; color: var(--muted); margin-top: 6px; }
.kpi-card.accent::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient); }
.kpi-card.success .kpi-value { color: var(--success); }
.kpi-card.pending .kpi-value { color: var(--pending); }
.kpi-card.danger .kpi-value { color: var(--danger); }

/* ---------- Section shell ---------- */
.dash-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden; }
.dash-section-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; gap: 8px; }
.dash-section-head h2 { font-family: 'Space Grotesk', sans-serif; font-size: 15px; margin: 0; font-weight: 600; }
.dash-section-head .hint { font-size: 12px; color: var(--muted); }
.dash-section-body { padding: 20px; overflow-x: auto; }

.charts-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.chart-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.chart-box h2 { font-family: 'Space Grotesk', sans-serif; font-size: 14px; margin: 0 0 14px; font-weight: 600; }
.chart-canvas-wrap { position: relative; height: 240px; }
.chart-row-3 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }

/* ---------- Payment table ---------- */
.pay-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13px; }
.pay-table th {
    text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--muted); font-weight: 600; padding: 0 12px 10px; border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.pay-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pay-table tr:last-child td { border-bottom: none; }
.pay-table tr.row-urgent { background: var(--danger-soft); }
.pay-table tr.row-urgent td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
.mono { font-family: 'JetBrains Mono', monospace; font-weight: 500; }

.status-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.status-pill.paid { background: var(--success-soft); color: var(--success); }
.status-pill.pending { background: var(--pending-soft); color: var(--pending); }
.status-pill.overdue { background: var(--danger-soft); color: var(--danger); }

.countdown-chip {
    display: inline-flex; align-items: center; gap: 6px; font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px; font-weight: 600; color: var(--danger); background: var(--danger-soft);
    padding: 4px 9px; border-radius: 999px; animation: pulse-glow 1.8s ease-in-out infinite;
}
.countdown-chip .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--danger); }
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.28); }
    50% { box-shadow: 0 0 0 5px rgba(220, 38, 38, 0); }
}
@media (prefers-reduced-motion: reduce) { .countdown-chip { animation: none; } }

.empty-note { color: var(--muted); font-size: 13px; padding: 24px; text-align: center; }

/* ---------- Gap / ICCR mini panels ---------- */
.mini-panels { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.gap-item { display: flex; align-items: center; justify-content: space-between; font-size: 13px; padding: 10px 0; border-bottom: 1px dashed var(--line); gap: 8px; }
.gap-item:last-child { border-bottom: none; }
.gap-item .tag { color: var(--muted); font-size: 12px; }
.gap-item .count { font-family: 'JetBrains Mono', monospace; font-weight: 600; color: var(--pending); }

.stat-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; font-size: 13px; border-bottom: 1px solid var(--line); gap: 8px; }
.stat-row:last-child { border-bottom: none; }
.stat-row .val { font-family: 'JetBrains Mono', monospace; font-weight: 600; }


/* =========================================================================
   15. RESPONSIVE RULES (consolidated + strengthened)
   Breakpoints: 1400 / 1200 / 991 / 768 / 576 / 400
   ========================================================================= */

/* Desktop high-res screens (1400px and up) */
@media (min-width: 1400px) {
    .sidebar-logo-medallion { width: 52px; height: 52px; }
    .brand-university { font-size: 11.5px; }
    .brand-title { font-size: 15px; }
}

/* Small laptops (1200px and down) — dashboard multi-column grids start easing */
@media (max-width: 1200px) {
    .charts-row { grid-template-columns: 1fr; }
    .chart-row-3 { grid-template-columns: 1fr 1fr; }
}

/* Tablets / medium screens (991px and down) */
@media (max-width: 991px) {
    .sidebar { width: 270px; transform: translateX(-100%); }
    .sidebar.sidebar-open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .sidebar-logo-medallion { width: 44px; height: 44px; }
    .sidebar-toggle { display: flex; }
    .page-body { padding: 16px; }

    .mini-panels { grid-template-columns: 1fr; }
    .dash-wrap { padding: 20px 16px 48px; }
}

/* Mobile & tablet grid fallback (768px and down) */
@media (max-width: 768px) {
    .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }

    .chart-row-3 { grid-template-columns: 1fr; }
    .kpi-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .dash-header { flex-direction: column; align-items: flex-start; }
    .dash-filter { width: 100%; }
    .dash-filter select { flex: 1; min-width: 0; }
    .topbar { padding: 14px 18px; }
}

/* Mobile screens (576px and down) */
@media (max-width: 576px) {
    .sidebar { width: 260px; }
    .brand-university { font-size: 10px; }
    .brand-title { font-size: 13px; }

    .page-body { padding: 12px; }
    .card-custom { padding: 16px; }

    /* Login page mobile styles */
    .login-card { padding: 24px 20px 20px; border-radius: 18px; }
    .gtu-name { font-size: 19px; }
    .portal-name { font-size: 14px; }
    .main-logo { width: 70px; height: 70px; }
    .otp-links { flex-direction: column; align-items: flex-start; gap: 10px; }

    /* Dashboard mobile styles */
    .dash-title { font-size: 19px; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .kpi-value { font-size: 21px; }
    .dash-section-body { padding: 14px; }
    .chart-canvas-wrap { height: 200px; }

    /* Bulk upload mobile styles */
    .upload-inline-group { flex-direction: column; align-items: stretch; }
    .action-btn-group { justify-content: flex-start; }
    .page-toolbar { flex-direction: column; align-items: flex-start; }
}

/* Small phones (400px and down) */
@media (max-width: 400px) {
    .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .kpi-card { padding: 14px 14px 12px; }
    .kpi-value { font-size: 19px; }
    .btn-primary-custom, .btn-outline-custom { height: 44px; padding: 0 16px; font-size: 14px; }
    .main-logo { width: 60px; height: 60px; }
}
