/* ============================================================
   ATC EXAM PLATFORM — AVIATION STYLESHEET
   Include in header.php: <link rel="stylesheet" href="style.css">
   ============================================================ */


/* ── Google Fonts ───────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Share+Tech+Mono&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ──────────────────────────────────────────── */

:root {
    --navy: #0B1F3A;
    --navy-mid: #112847;
    --navy-light: #1A3A5C;
    --sky: #4A9FD4;
    --sky-light: #7BBFE8;
    --sky-pale: #E8F4FD;
    --amber: #F5A623;
    --amber-light: #FFC85A;
    --white: #F0F4F8;
    --pass: #2ECC71;
    --pass-bg: #D4F5E4;
    --fail: #E74C3C;
    --fail-bg: #FAD7D3;
    --warn: #F39C12;
    --warn-bg: #FEF0D0;
    --text-dark: #1A2B3C;
    --text-mid: #4A5568;
    --text-light: #8A9BB0;
    --border: #D0DCE8;
    --card-bg: #FFFFFF;
    --page-bg: #EBF2FA;
    --mono: 'Share Tech Mono', monospace;
    --sans: 'Inter', sans-serif;
    --display: 'Rajdhani', sans-serif;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow: 0 2px 12px rgba(11, 31, 58, 0.10);
    --shadow-lg: 0 4px 24px rgba(11, 31, 58, 0.15);
}


/* ── Base ───────────────────────────────────────────────────── */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--sans);
    background-color: var(--page-bg);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--display);
    letter-spacing: 0.3px;
}


/* ── Navbar ─────────────────────────────────────────────────── */

.navbar {
    background: linear-gradient(90deg, var(--navy) 0%, var(--navy-light) 100%) !important;
    border-bottom: 2px solid var(--amber);
    padding: 10px 20px;
    box-shadow: 0 2px 16px rgba(11, 31, 58, 0.35);
}

.navbar-brand img {
    max-height: 44px;
    filter: brightness(1.1);
}

.navbar .nav-link {
    font-family: var(--display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 6px 14px !important;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #fff !important;
    background: rgba(245, 166, 35, 0.18);
}

.navbar-text span {
    font-family: var(--display);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: var(--amber-light) !important;
    font-weight: 600;
}


/* Navbar dropdown */

.navbar .dropdown-menu {
    background: var(--navy-mid);
    border: 1px solid var(--navy-light);
    border-top: 2px solid var(--amber);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px 0;
    min-width: 220px;
}

.navbar .dropdown-item {
    font-family: var(--display);
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    padding: 8px 16px;
    letter-spacing: 0.3px;
    transition: all 0.15s ease;
}

.navbar .dropdown-item:hover {
    background: rgba(74, 159, 212, 0.25);
    color: #fff;
}


/* Submenu */

.navbar .submenu.dropdown-menu {
    background: var(--navy-light);
    border-top: 2px solid var(--sky);
}


/* ── Submenu show/hide rules ────────────────────────────────── */

@media all and (min-width: 992px) {
    .dropdown-menu li {
        position: relative;
    }
    .nav-item .submenu {
        display: none;
        position: absolute;
        left: 100%;
        top: -7px;
    }
    .nav-item .submenu-left {
        right: 100%;
        left: auto;
    }
    .dropdown-menu>li:hover>.submenu {
        display: block;
    }
    /* Third level */
    .submenu li {
        position: relative;
    }
    .submenu li:hover>.submenu {
        display: block;
    }
}

@media (max-width: 991px) {
    .dropdown-menu .dropdown-menu {
        margin-left: 0.7rem;
        margin-right: 0.7rem;
        margin-bottom: 0.5rem;
    }
}


/* Third level — question count */

.navbar .submenu .submenu.dropdown-menu {
    background: #1E4A7A;
    border-top: 2px solid var(--amber);
    min-width: 150px;
}

.navbar .submenu .submenu .dropdown-item {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--amber-light);
    letter-spacing: 1px;
}

.navbar .submenu .submenu .dropdown-item:hover {
    background: rgba(245, 166, 35, 0.2);
    color: #fff;
}


/* ── Page Header Banner ─────────────────────────────────────── */

.page-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1A5080 100%);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 28px;
    border-left: 4px solid var(--amber);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}


/* Subtle radar rings watermark */

.page-header::before {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 1px solid rgba(74, 159, 212, 0.15);
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 1px solid rgba(74, 159, 212, 0.12);
    pointer-events: none;
}

.page-header h4,
.page-header h5 {
    color: #fff;
    font-family: var(--display);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1.1rem;
    margin-bottom: 4px;
}


/* ── Section Cards ──────────────────────────────────────────── */

.section-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px 28px;
    margin-bottom: 24px;
    border-top: 3px solid var(--sky);
}

.section-title {
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}


/* ── Dashboard Header Stats ─────────────────────────────────── */

.dash-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1A5080 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 24px;
    border-left: 4px solid var(--amber);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.dash-header::before {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid rgba(74, 159, 212, 0.15);
    pointer-events: none;
}

.dash-stat .value {
    font-family: var(--mono);
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1;
    color: var(--amber-light);
}

.dash-stat .label {
    font-family: var(--display);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.75;
    margin-top: 4px;
}

.dash-highlight {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 12px 18px;
    font-size: 0.87rem;
}

.dash-highlight strong {
    display: block;
    font-family: var(--display);
    font-size: 0.95rem;
    color: var(--amber-light);
    margin-bottom: 2px;
    letter-spacing: 0.3px;
}


/* ── Buttons ────────────────────────────────────────────────── */

.btn-primary {
    background: linear-gradient(135deg, var(--sky) 0%, #2980B9 100%);
    border: none;
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-radius: 8px;
    padding: 9px 22px;
    box-shadow: 0 2px 8px rgba(74, 159, 212, 0.3);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5AAFDE 0%, var(--sky) 100%);
    box-shadow: 0 4px 14px rgba(74, 159, 212, 0.4);
    transform: translateY(-1px);
}

.btn-outline-primary {
    border: 1.5px solid var(--sky);
    color: var(--sky);
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background: var(--sky);
    color: #fff;
    border-color: var(--sky);
}

.btn-danger {
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-success {
    background: linear-gradient(135deg, var(--pass) 0%, #27AE60 100%);
    border: none;
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    border-radius: 8px;
}


/* ── Timer Widget ───────────────────────────────────────────── */

.timer-box {
    position: fixed;
    top: 75px;
    right: 20px;
    z-index: 1000;
    min-width: 110px;
    text-align: center;
    border-radius: 10px;
    padding: 10px 18px;
    font-family: var(--mono);
    font-size: 1.4rem;
    letter-spacing: 2px;
    border: 2px solid transparent;
    box-shadow: var(--shadow-lg);
    transition: all 0.5s ease;
}

.timer-ok {
    background: var(--navy);
    color: var(--pass);
    border-color: var(--pass);
    box-shadow: 0 0 12px rgba(46, 204, 113, 0.25);
}

.timer-warning {
    background: var(--navy);
    color: var(--amber);
    border-color: var(--amber);
    box-shadow: 0 0 12px rgba(245, 166, 35, 0.3);
    animation: timerPulse 2s infinite;
}

.timer-danger {
    background: var(--navy);
    color: var(--fail);
    border-color: var(--fail);
    box-shadow: 0 0 16px rgba(231, 76, 60, 0.4);
    animation: timerPulse 0.8s infinite;
}

@keyframes timerPulse {
    0%,
    100% {
        box-shadow: 0 0 12px rgba(231, 76, 60, 0.3);
    }
    50% {
        box-shadow: 0 0 22px rgba(231, 76, 60, 0.6);
    }
}


/* ── Exam Question Cards ────────────────────────────────────── */

.card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 18px rgba(11, 31, 58, 0.12);
}

.card .card-body {
    padding: 20px 24px;
}

.card .fw-semibold {
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.5;
}


/* Question options */

.form-check {
    padding: 8px 12px;
    margin: 4px 0;
    border-radius: 8px;
    transition: background 0.15s ease;
    border: 1px solid transparent;
}

.form-check:hover {
    background: var(--sky-pale);
    border-color: var(--sky-light);
}

.form-check-input:checked~.form-check-label {
    color: var(--navy);
    font-weight: 600;
}

.form-check-input:checked {
    background-color: var(--sky);
    border-color: var(--sky);
}

.form-check-label {
    font-size: 0.92rem;
    color: var(--text-mid);
    cursor: pointer;
    width: 100%;
}


/* ── Results Page ───────────────────────────────────────────── */


/* Result card states */

.card.correct {
    border-left: 4px solid var(--pass);
    background: #F6FFFA;
}

.card.wrong {
    border-left: 4px solid var(--fail);
    background: #FFF8F7;
}

.card.unanswered {
    border-left: 4px solid var(--amber);
    background: #FFFDF5;
}

.option-label {
    display: block;
    padding: 5px 10px;
    border-radius: 6px;
    margin: 3px 0;
    font-size: 0.9rem;
}

.option-correct {
    background: var(--pass-bg);
    color: #1A6B3A;
    font-weight: 600;
}

.option-wrong {
    background: var(--fail-bg);
    color: #8B1A12;
}

.option-selected {
    font-weight: 600;
}


/* Summary bar */

.summary-bar {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--sky);
}

.summary-bar .fs-1 {
    font-family: var(--mono);
    letter-spacing: 1px;
}


/* Weakness card */

.weakness-card {
    background: var(--warn-bg);
    border-left: 4px solid var(--amber);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 10px;
    font-size: 0.88rem;
}


/* ── Readiness Gauges ───────────────────────────────────────── */

.gauge-card {
    border-radius: var(--radius);
    padding: 18px 16px;
    text-align: center;
    border: 1px solid var(--border);
    background: var(--card-bg);
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s ease;
}

.gauge-card:hover {
    box-shadow: 0 4px 20px rgba(11, 31, 58, 0.12);
}

.gauge-card .cat-label {
    font-family: var(--display);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    margin-bottom: 2px;
}

.gauge-card .sub-label {
    font-family: var(--display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.gauge-pct {
    font-family: var(--mono) !important;
    font-size: 1.1rem !important;
}

.gauge-meta {
    font-size: 0.74rem;
    color: var(--text-mid);
    line-height: 1.7;
    font-family: var(--sans);
}

.badge-ready {
    background: var(--pass-bg);
    color: #155724;
}

.badge-border {
    background: var(--warn-bg);
    color: #856404;
}

.badge-notready {
    background: var(--fail-bg);
    color: #721c24;
}


/* ── Score Table ────────────────────────────────────────────── */

.score-pass {
    background: var(--pass-bg) !important;
    color: #155724 !important;
    font-weight: 700;
    font-family: var(--mono);
}

.score-fail {
    background: var(--fail-bg) !important;
    color: #721c24 !important;
    font-weight: 700;
    font-family: var(--mono);
}

table thead tr {
    background: var(--sky-pale) !important;
}

table th {
    font-family: var(--display);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--navy);
}

table td {
    font-size: 0.85rem;
}


/* ── Form Inputs ────────────────────────────────────────────── */

.form-control,
.form-select {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: #FAFCFF;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--sky);
    box-shadow: 0 0 0 3px rgba(74, 159, 212, 0.15);
    background: #fff;
}

.form-label {
    font-family: var(--display);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

textarea.form-control {
    line-height: 1.6;
}


/* ── Autosave Status ────────────────────────────────────────── */

#autosave-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text-light);
    background: rgba(11, 31, 58, 0.85);
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    z-index: 999;
}


/* ── Modals ─────────────────────────────────────────────────── */

.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: 1px solid var(--border);
}

.modal-header.bg-danger {
    background: linear-gradient(135deg, #C0392B, var(--fail)) !important;
}

.modal-title {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}


/* ── Accordion (demo.php modal) ─────────────────────────────── */

.accordion-button {
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    color: var(--navy);
    background: var(--sky-pale);
}

.accordion-button:not(.collapsed) {
    background: var(--navy);
    color: #fff;
    box-shadow: none;
}

.accordion-button::after {
    filter: none;
}

.accordion-button:not(.collapsed)::after {
    filter: invert(1);
}

.accordion-body {
    background: #FAFCFF;
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.7;
}

.accordion-body a {
    color: var(--sky);
    font-weight: 600;
    text-decoration: none;
    font-family: var(--display);
    font-size: 0.88rem;
    transition: color 0.15s ease;
}

.accordion-body a:hover {
    color: var(--navy);
}

.accordion-body select {
    display: inline-block;
    width: auto;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1.5px solid var(--sky);
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--navy);
    background: #fff;
    margin-right: 8px;
    cursor: pointer;
}


/* ── Admin Question Table ───────────────────────────────────── */

.q-table th {
    background: var(--sky-pale) !important;
}

.q-table td {
    font-size: 0.82rem;
}

.correct-badge {
    background: var(--pass-bg);
    color: #155724;
    font-family: var(--mono);
    font-weight: 700;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.source-tag {
    font-size: 0.75rem;
    color: var(--text-light);
    font-family: var(--mono);
}


/* ── Alerts ─────────────────────────────────────────────────── */

.alert {
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: 0.88rem;
    border: none;
    border-left: 4px solid transparent;
}

.alert-success {
    border-left-color: var(--pass);
    background: var(--pass-bg);
    color: #155724;
}

.alert-danger {
    border-left-color: var(--fail);
    background: var(--fail-bg);
    color: #721c24;
}

.alert-info {
    border-left-color: var(--sky);
    background: var(--sky-pale);
    color: var(--navy);
}


/* ── Nav Tabs (results chart) ───────────────────────────────── */

.nav-tabs {
    border-bottom: 2px solid var(--border);
    gap: 4px;
}

.nav-tabs .nav-link {
    font-family: var(--display);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-mid) !important;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 8px 16px;
    background: none !important;
    transition: all 0.15s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--navy) !important;
    border-bottom-color: var(--sky-light);
}

.nav-tabs .nav-link.active {
    color: var(--navy) !important;
    border-bottom: 2px solid var(--amber);
    font-weight: 700;
}


/* Subject pills */

.subject-pill {
    font-family: var(--display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 20px !important;
    padding: 4px 14px !important;
    margin: 2px;
}


/* ── Streak Dots ────────────────────────────────────────────── */

.s-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    position: relative;
    cursor: default;
    font-family: var(--mono);
}

.s-dot.pass {
    background: var(--pass);
    box-shadow: 0 2px 6px rgba(46, 204, 113, 0.4);
}

.s-dot.fail {
    background: var(--fail);
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.4);
}


/* ── Footer ─────────────────────────────────────────────────── */

footer {
    background: linear-gradient(90deg, var(--navy) 0%, var(--navy-light) 100%) !important;
    border-top: 2px solid var(--amber);
    font-family: var(--display);
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6) !important;
    padding: 14px 0 !important;
}


/* ── Login / Register Cards ─────────────────────────────────── */

.card .card-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%) !important;
    border-bottom: 2px solid var(--amber);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    padding: 20px;
    text-align: center;
}

.card .card-header h3 {
    color: #fff;
    font-family: var(--display);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}


/* ── Comment form button ────────────────────────────────────── */

.btn-comment-submit {
    background: linear-gradient(135deg, var(--sky), #2980B9);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 12px 28px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(74, 159, 212, 0.35);
    transition: all 0.2s ease;
    display: block;
    width: fit-content;
    margin: 20px auto;
    text-decoration: none;
}

.btn-comment-submit:hover {
    background: linear-gradient(135deg, #2980B9, var(--sky));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 159, 212, 0.45);
    color: #fff;
}


/* ── Fixed comment button ───────────────────────────────────── */

.btn-comment {
    background: var(--navy);
    border: 2px solid var(--amber);
    color: var(--amber) !important;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.2s ease;
}

.btn-comment:hover {
    background: var(--amber);
    color: var(--navy) !important;
    transform: scale(1.1);
}

.btn-comment svg path {
    fill: currentColor;
}


/* ── Pagination ─────────────────────────────────────────────── */

.page-link {
    font-family: var(--display);
    font-size: 0.82rem;
    color: var(--sky);
    border-color: var(--border);
}

.page-item.active .page-link {
    background: var(--sky);
    border-color: var(--sky);
}


/* ── Trend indicators ───────────────────────────────────────── */

.trend-up {
    color: var(--pass);
    font-weight: 700;
    font-family: var(--mono);
}

.trend-down {
    color: var(--fail);
    font-weight: 700;
    font-family: var(--mono);
}

.trend-flat {
    color: var(--text-light);
    font-family: var(--mono);
}

.trend-new {
    color: var(--sky);
    font-size: 0.7rem;
    font-family: var(--mono);
}


/* ── Admin per-user rank ─────────────────────────────────────── */

.pass-rate-bar {
    height: 6px;
    border-radius: 3px;
    background: var(--border);
    margin-top: 4px;
}

.pass-rate-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}


/* ── Utility ────────────────────────────────────────────────── */

.text-navy {
    color: var(--navy) !important;
}

.text-sky {
    color: var(--sky) !important;
}

.text-amber {
    color: var(--amber) !important;
}

.bg-navy {
    background: var(--navy) !important;
}


/* ── Scrollbar ──────────────────────────────────────────────── */

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: var(--page-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--sky-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--sky);
}


/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 768px) {
    .page-header,
    .dash-header {
        padding: 20px 18px;
    }
    .section-card {
        padding: 18px 16px;
    }
    .timer-box {
        top: 65px;
        right: 10px;
        font-size: 1.1rem;
        padding: 7px 12px;
    }
    .dash-stat .value {
        font-size: 1.7rem;
    }
}