/* ============================================================
   CBT SEKOLAH - Custom Styles
   Bootstrap 5 + Custom (Merged with Landing Page)
   ============================================================ */

:root {
    --primary:       #2d6a4f;
    --primary-dark:  #1b4332;
    --secondary:     #40916c;
    --accent:        #74c69d;
    --success:       #52b788;
    --danger:        #ef233c;
    --warning:       #fb8500;
    --info:          #74c69d;
    --light:         #f8f9fa;
    --dark:          #081c15;
    --sidebar-bg:    #06140f;
    --sidebar-text:  #e0e0e0;
    --card-shadow:   0 4px 24px rgba(0,0,0,0.25);
    
    --card-bg:       #0B1E15;
    --input-bg:      #112B20;
    --border-color:  rgba(255,255,255,0.1);
    --text-color:    #e0e0e0;
    
    --grad-main:    linear-gradient(135deg, #081c15 0%, #112B20 50%, #1B4332 100%);
    --grad-hero:    linear-gradient(135deg, #40916c 0%, #2d6a4f 50%, #1b4332 100%);
    --grad-card:    linear-gradient(135deg, #112B20, #0B1E15);
}

/* ── Bootstrap Overrides ─────────────────── */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.nav-pills .nav-link { color: #8f9ba8; }
.nav-pills .nav-link.active { background-color: var(--primary) !important; color: #fff !important; }
.bg-light { background-color: rgba(255,255,255,0.05) !important; color: #fff; border: 1px solid rgba(255,255,255,0.05); }
.text-muted { color: #8f9ba8 !important; }
.border { border-color: rgba(255,255,255,0.1) !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ── Base ─────────────────────────────────── */
body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--dark);
    color: #e0e0e0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Scrollbar ────────────────────────────── */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }


/* ============================================================
   LANDING PAGE — CBT SEKOLAH
   ============================================================ */
    .navbar-cbt {
        background: rgba(8, 28, 21, 0.85);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(255,255,255,.06);
        padding: .75rem 0;
        position: fixed;
        top: 0; left: 0; right: 0;
        z-index: 1050;
        transition: all .3s ease;
    }
    .navbar-cbt.scrolled {
        background: rgba(8, 28, 21, 0.97);
        box-shadow: 0 4px 20px rgba(0,0,0,.4);
    }
    .navbar-brand-logo {
        width: 40px; height: 40px;
        background: var(--grad-hero);
        border-radius: 12px;
        display: flex; align-items: center; justify-content: center;
        font-size: 1.2rem; flex-shrink: 0;
    }
    .nav-link-cbt {
        color: rgba(255,255,255,.7) !important;
        font-weight: 500;
        font-size: .88rem;
        padding: .5rem 1rem !important;
        border-radius: 8px;
        transition: all .2s;
    }
    .nav-link-cbt:hover {
        color: #fff !important;
        background: rgba(255,255,255,.08);
    }
    .hero-section {
        min-height: 100vh;
        background: var(--grad-main);
        display: flex; align-items: center;
        position: relative;
        overflow: hidden;
        padding-top: 80px;
    }
    .hero-blob {
        position: absolute;
        border-radius: 50%;
        filter: blur(80px);
        opacity: .15;
        animation: float 8s ease-in-out infinite;
    }
    .blob-1 {
        width: 600px; height: 600px;
        background: var(--primary);
        top: -200px; left: -200px;
        animation-delay: 0s;
    }
    .blob-2 {
        width: 500px; height: 500px;
        background: var(--secondary);
        bottom: -150px; right: -150px;
        animation-delay: 3s;
    }
    .blob-3 {
        width: 300px; height: 300px;
        background: var(--accent);
        top: 40%; left: 50%;
        animation-delay: 6s;
    }
    @keyframes float {
        0%, 100% { transform: translateY(0) scale(1); }
        50%       { transform: translateY(-30px) scale(1.05); }
    }
    .hero-grid {
        position: absolute;
        inset: 0;
        background-image:
            linear-gradient(rgba(82,183,136,.07) 1px, transparent 1px),
            linear-gradient(90deg, rgba(82,183,136,.07) 1px, transparent 1px);
        background-size: 60px 60px;
        mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    }
    .hero-badge {
        display: inline-flex; align-items: center; gap: .5rem;
        background: rgba(82,183,136,.2);
        border: 1px solid rgba(82,183,136,.4);
        border-radius: 50px;
        padding: .4rem 1rem;
        font-size: .78rem;
        color: #95d5b2;
        font-weight: 600;
        letter-spacing: .5px;
        margin-bottom: 1.5rem;
    }
    .hero-title {
        font-size: clamp(2rem, 5vw, 3.5rem);
        font-weight: 800;
        line-height: 1.15;
        color: #fff;
        margin-bottom: 1.25rem;
    }
    .hero-title .gradient-text {
        background: var(--grad-hero);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    .hero-desc {
        font-size: clamp(.9rem, 2vw, 1.1rem);
        color: rgba(255,255,255,.65);
        line-height: 1.8;
        max-width: 540px;
        margin-bottom: 2rem;
    }
    .btn-hero-primary {
        background: var(--grad-hero);
        border: none;
        color: #fff;
        padding: .875rem 2rem;
        border-radius: 12px;
        font-weight: 700;
        font-size: .95rem;
        transition: all .3s;
        position: relative; overflow: hidden;
        text-decoration: none;
        display: inline-flex; align-items: center; gap: .5rem;
    }
    .btn-hero-primary::before {
        content: '';
        position: absolute; inset: 0;
        background: rgba(255,255,255,.1);
        opacity: 0; transition: opacity .3s;
    }
    .btn-hero-primary:hover { transform: translateY(-2px); color: #fff; }
    .btn-hero-primary:hover::before { opacity: 1; }
    .btn-hero-secondary {
        background: rgba(255,255,255,.08);
        border: 1.5px solid rgba(255,255,255,.2);
        color: #fff;
        padding: .875rem 2rem;
        border-radius: 12px;
        font-weight: 600;
        font-size: .95rem;
        transition: all .3s;
        text-decoration: none;
        display: inline-flex; align-items: center; gap: .5rem;
    }
    .btn-hero-secondary:hover {
        background: rgba(255,255,255,.15);
        border-color: rgba(255,255,255,.35);
        transform: translateY(-2px);
        color: #fff;
    }
    .hero-stats {
        display: flex; flex-wrap: wrap; gap: 1.5rem;
        margin-top: 3rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255,255,255,.1);
    }
    .hero-stat-item { text-align: center; }
    .hero-stat-num {
        font-size: 1.75rem;
        font-weight: 800;
        color: #fff;
        line-height: 1;
        background: var(--grad-hero);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    .hero-stat-label {
        font-size: .75rem;
        color: rgba(255,255,255,.5);
        margin-top: .25rem;
    }
    .hero-visual {
        position: relative;
        animation: floatCard 4s ease-in-out infinite;
    }
    @keyframes floatCard {
        0%, 100% { transform: translateY(0); }
        50%       { transform: translateY(-12px); }
    }
    .hero-card-main {
        background: rgba(255,255,255,.06);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 20px;
        padding: 1.5rem;
        box-shadow: 0 30px 60px rgba(0,0,0,.4);
    }
    .mock-question {
        background: rgba(64,145,108,.15);
        border: 1px solid rgba(64,145,108,.3);
        border-radius: 10px;
        padding: .75rem 1rem;
        font-size: .82rem;
        color: #b7e4c7;
        margin-bottom: .75rem;
    }
    .mock-option {
        display: flex; align-items: center; gap: .625rem;
        padding: .5rem .75rem;
        border-radius: 8px;
        font-size: .8rem;
        margin-bottom: .375rem;
        transition: all .2s;
        cursor: pointer;
        border: 1px solid rgba(255,255,255,.08);
        color: rgba(255,255,255,.7);
    }
    .mock-option:hover    { background: rgba(255,255,255,.08); }
    .mock-option.selected { background: rgba(64,145,108,.3); border-color: var(--primary); color: #fff; }
    .mock-opt-badge {
        width: 24px; height: 24px; border-radius: 50%;
        background: rgba(255,255,255,.1);
        display: flex; align-items: center; justify-content: center;
        font-weight: 700; font-size: .72rem; flex-shrink: 0;
    }
    .mock-option.selected .mock-opt-badge {
        background: var(--primary);
        color: #fff;
    }
    .mock-timer {
        background: rgba(116,198,157,.2);
        border: 1px solid rgba(116,198,157,.35);
        border-radius: 8px;
        padding: .4rem .75rem;
        font-size: .85rem;
        font-weight: 700;
        color: #b7e4c7;
        display: inline-flex; align-items: center; gap: .375rem;
    }
    .float-badge {
        position: absolute;
        background: rgba(255,255,255,.08);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255,255,255,.15);
        border-radius: 12px;
        padding: .625rem 1rem;
        font-size: .78rem;
        font-weight: 600;
        color: #fff;
        display: flex; align-items: center; gap: .5rem;
        animation: floatBadge 5s ease-in-out infinite;
        white-space: nowrap;
    }
    .float-badge-1 { top: -20px; left: -30px; animation-delay: 0s; }
    .float-badge-2 { bottom: 10px; right: -20px; animation-delay: 2.5s; }
    @keyframes floatBadge {
        0%, 100% { transform: translateY(0) rotate(-1deg); }
        50%       { transform: translateY(-8px) rotate(1deg); }
    }
    .section-title {
        font-size: clamp(1.6rem, 3.5vw, 2.4rem);
        font-weight: 800;
        color: #fff;
        line-height: 1.25;
    }
    .section-sub {
        color: rgba(255,255,255,.55);
        font-size: clamp(.875rem, 2vw, 1rem);
        line-height: 1.75;
        max-width: 560px;
        margin: 0 auto;
    }
    .section-badge {
        display: inline-block;
        background: rgba(64,145,108,.2);
        border: 1px solid rgba(64,145,108,.35);
        border-radius: 50px;
        padding: .3rem .9rem;
        font-size: .72rem;
        font-weight: 700;
        color: #95d5b2;
        letter-spacing: .8px;
        text-transform: uppercase;
        margin-bottom: .75rem;
    }
    .features-section {
        background: #06140f;
        padding: 6rem 0;
        position: relative;
    }
    .feature-card {
        background: var(--grad-card);
        border: 1px solid rgba(255,255,255,.07);
        border-radius: 20px;
        padding: 2rem;
        height: 100%;
        transition: all .35s ease;
        position: relative;
        overflow: hidden;
    }
    .feature-card::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 2px;
        background: var(--grad-hero);
        opacity: 0;
        transition: opacity .35s;
    }
    .feature-card:hover {
        transform: translateY(-6px);
        border-color: rgba(64,145,108,.3);
        box-shadow: 0 20px 40px rgba(0,0,0,.35);
    }
    .feature-card:hover::before { opacity: 1; }
    .feature-icon {
        width: 56px; height: 56px;
        border-radius: 16px;
        display: flex; align-items: center; justify-content: center;
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
        flex-shrink: 0;
    }
    .feature-card h5 {
        color: #fff;
        font-weight: 700;
        font-size: 1.05rem;
        margin-bottom: .6rem;
    }
    .feature-card p {
        color: rgba(255,255,255,.55);
        font-size: .875rem;
        line-height: 1.7;
        margin: 0;
    }
    .how-section {
        background: var(--grad-main);
        padding: 6rem 0;
        position: relative;
    }
    .step-card {
        text-align: center;
        padding: 1.5rem;
        position: relative;
    }
    .step-num {
        width: 56px; height: 56px;
        background: var(--grad-hero);
        border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        font-size: 1.2rem;
        font-weight: 800;
        color: #fff;
        margin: 0 auto 1.25rem;
        position: relative;
        z-index: 1;
    }
    .step-connector {
        position: absolute;
        top: 44px;
        left: calc(50% + 28px);
        right: calc(-50% + 28px);
        height: 2px;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        opacity: .3;
    }
    .step-card h6 {
        color: #fff;
        font-weight: 700;
        margin-bottom: .5rem;
    }
    .step-card p {
        color: rgba(255,255,255,.5);
        font-size: .83rem;
        line-height: 1.65;
        margin: 0;
    }
    .roles-section {
        background: #06140f;
        padding: 6rem 0;
    }
    .role-card {
        border-radius: 24px;
        padding: 2.5rem;
        height: 100%;
        position: relative;
        overflow: hidden;
        transition: all .35s;
        text-decoration: none;
        display: block;
    }
    .role-card-admin {
        background: linear-gradient(135deg, #112B20, #0B1E15);
        border: 1px solid rgba(64,145,108,.3);
    }
    .role-card-student {
        background: linear-gradient(135deg, #0B1E15, #081c15);
        border: 1px solid rgba(82,183,136,.25);
    }
    .role-card:hover { transform: translateY(-8px); }
    .role-card-admin:hover  { box-shadow: 0 24px 50px rgba(64,145,108,.25); }
    .role-card-student:hover{ box-shadow: 0 24px 50px rgba(82,183,136,.2); }
    .role-icon {
        width: 72px; height: 72px;
        border-radius: 20px;
        display: flex; align-items: center; justify-content: center;
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    .role-card h4 {
        color: #fff;
        font-weight: 800;
        font-size: 1.4rem;
        margin-bottom: .75rem;
    }
    .role-card p {
        color: rgba(255,255,255,.6);
        font-size: .875rem;
        line-height: 1.75;
        margin-bottom: 1.5rem;
    }
    .role-features {
        list-style: none;
        padding: 0; margin: 0 0 2rem;
    }
    .role-features li {
        display: flex; align-items: center; gap: .625rem;
        color: rgba(255,255,255,.7);
        font-size: .83rem;
        padding: .35rem 0;
    }
    .role-features li i {
        font-size: .9rem;
        flex-shrink: 0;
    }
    .btn-role {
        width: 100%;
        padding: .875rem;
        border-radius: 12px;
        font-weight: 700;
        font-size: .9rem;
        transition: all .3s;
        text-decoration: none;
        display: flex; align-items: center; justify-content: center; gap: .5rem;
    }
    .btn-role-admin {
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        color: #fff; border: none;
    }
    .btn-role-student {
        background: linear-gradient(135deg, #52b788, #40916c);
        color: #fff; border: none;
    }
    .btn-role:hover { transform: scale(1.02); opacity: .93; color: #fff; }
    .stats-section {
        background: var(--grad-main);
        padding: 5rem 0;
        position: relative;
        overflow: hidden;
    }
    .stat-item {
        text-align: center;
        padding: 1.5rem;
    }
    .stat-number {
        font-size: clamp(2rem, 4vw, 3rem);
        font-weight: 800;
        background: var(--grad-hero);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        line-height: 1;
        margin-bottom: .375rem;
    }
    .stat-label {
        color: rgba(255,255,255,.55);
        font-size: .85rem;
    }
    .tech-badge {
        display: inline-flex; align-items: center; gap: .5rem;
        background: rgba(255,255,255,.06);
        border: 1px solid rgba(255,255,255,.1);
        border-radius: 50px;
        padding: .4rem 1rem;
        font-size: .78rem;
        font-weight: 600;
        color: rgba(255,255,255,.75);
        margin: .25rem;
        transition: all .25s;
    }
    .tech-badge:hover {
        background: rgba(255,255,255,.12);
        color: #fff;
        transform: translateY(-2px);
    }
    .footer-section {
        background: #040A07;
        border-top: 1px solid rgba(255,255,255,.06);
        padding: 3.5rem 0 2rem;
    }
    .footer-logo {
        width: 44px; height: 44px;
        background: var(--grad-hero);
        border-radius: 14px;
        display: flex; align-items: center; justify-content: center;
        font-size: 1.3rem;
        flex-shrink: 0;
    }
    .footer-link {
        color: rgba(255,255,255,.5);
        text-decoration: none;
        font-size: .83rem;
        transition: color .2s;
        display: block;
        padding: .2rem 0;
    }
    .footer-link:hover { color: #fff; }
    .footer-divider {
        border-color: rgba(255,255,255,.07);
        margin: 2rem 0 1.5rem;
    }
    @media (max-width: 991.98px) {
        .hero-visual { margin-top: 3rem; }
        .float-badge-1, .float-badge-2 { display: none; }
        .step-connector { display: none; }
    }
    @media (max-width: 767.98px) {
        .hero-stats { justify-content: center; }
        .hero-stat-item { min-width: 100px; }
        .features-section, .how-section,
        .roles-section, .stats-section { padding: 4rem 0; }
        .role-card { padding: 2rem 1.5rem; }
    }
    @media (max-width: 575.98px) {
        .hero-title  { font-size: 1.85rem; }
        .btn-hero-primary, .btn-hero-secondary {
            width: 100%; justify-content: center;
        }
    }
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: all .65s ease;
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: .1s; }
    .reveal-delay-2 { transition-delay: .2s; }
    .reveal-delay-3 { transition-delay: .3s; }
    .reveal-delay-4 { transition-delay: .4s; }
    @media (prefers-reduced-motion: reduce) {
        .reveal, .hero-blob, .hero-visual,
        .float-badge { animation: none !important; transition: none !important; }
        .reveal { opacity: 1; transform: none; }
    }


/* ============================================================
   DASHBOARD ADMIN & STUDENT STYLES
   ============================================================ */

/* ── Sidebar Admin ────────────────────────── */
.sidebar {
    background: var(--sidebar-bg);
    height: 100vh;
    width: 260px;
    position: fixed;
    top: 0; left: 0;
    z-index: 1040;
    transition: all 0.3s ease;
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.sidebar-brand {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-brand h5 { color: #fff; font-weight: 700; font-size: 1rem; margin: 0; }
.sidebar-brand small { color: rgba(255,255,255,0.5); font-size: 0.75rem; }

.sidebar .nav-link {
    color: var(--sidebar-text);
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    margin: 2px 0.5rem;
    font-size: 0.875rem;
    display: flex; align-items: center; gap: 10px;
    transition: all 0.2s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.sidebar .nav-link i { font-size: 1.1rem; width: 20px; text-align: center; }
.sidebar .nav-section-title {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px;
    color: rgba(255,255,255,0.35); padding: 0.75rem 1.5rem 0.25rem;
}

/* ── Main Content ─────────────────────────── */
.main-content { margin-left: 260px; min-height: 100vh; transition: all 0.3s ease; }

.topbar {
    background: var(--sidebar-bg);
    padding: 0.875rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 1030;
}

.page-content { padding: 1.5rem; }

/* ── Cards ────────────────────────────────── */
.card {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    background: rgba(255,255,255,0.03);
    color: #e0e0e0;
}
.card-header {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    border-radius: 12px 12px 0 0 !important;
    padding: 1rem 1.25rem;
}

.stat-card {
    border-radius: 14px;
    padding: 1.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.stat-card .stat-icon {
    font-size: 2.5rem; opacity: 0.3;
    position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
}
.stat-card h3 { font-size: 2rem; font-weight: 700; margin: 0; }
.stat-card p { margin: 0; opacity: 0.85; font-size: 0.875rem; }

/* ── Buttons ─────────────────────────────── */
.btn { border-radius: 8px; font-weight: 500; font-size: 0.875rem; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }

/* ── Badges ──────────────────────────────── */
.badge { font-weight: 500; font-size: 0.75rem; border-radius: 6px; padding: 0.35em 0.65em; }
.badge.text-primary, .badge.text-success { color: #95d5b2 !important; }
.badge.bg-opacity-10 { background: rgba(82, 183, 136, 0.15) !important; border: 1px solid rgba(82, 183, 136, 0.3); }

/* ── Tables ──────────────────────────────── */
.table { 
    font-size: 0.875rem; 
    color: #e0e0e0; 
    --bs-table-bg: transparent; 
    --bs-table-color: #e0e0e0; 
    --bs-table-striped-bg: rgba(255,255,255,0.02);
    --bs-table-hover-bg: rgba(255,255,255,0.05);
}
.table th {
    font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px;
    background: rgba(255,255,255,0.05); color: #fff; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.table tbody tr td { background: transparent !important; color: #e0e0e0 !important; border-bottom: 1px solid rgba(255,255,255,0.05); }
.table-hover tbody tr:hover td { background: rgba(255,255,255,0.05) !important; color: #fff !important; }
.table-bordered, .table-bordered td, .table-bordered th { border-color: rgba(255,255,255,0.08) !important; }

/* ── Modals ──────────────────────────────── */
.modal-content {
    background: #0b1e15;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    color: #e0e0e0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.modal-header {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
    border-radius: 16px 16px 0 0;
}
.modal-footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
    border-radius: 0 0 16px 16px;
}
.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* ── Forms ───────────────────────────────── */
.form-control, .form-select {
    background: rgba(0,0,0,0.2) !important; border: 1.5px solid rgba(255,255,255,0.1) !important;
    color: #fff !important; border-radius: 8px; font-size: 0.875rem; padding: 0.5rem 0.75rem;
    transition: all 0.2s;
}
.form-select option {
    background: #0b1e15; /* Dark background for dropdown options */
    color: #fff;
}
.form-control::placeholder { color: rgba(255,255,255,0.4); }
.form-control:focus, .form-select:focus {
    background: rgba(0,0,0,0.3) !important; border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(45,106,79,0.2); color: #fff !important;
}
.form-label { font-weight: 500; font-size: 0.875rem; margin-bottom: 0.375rem; color: #e0e0e0; }
.form-text { color: #8f9ba8; }

/* ── Login Page ─────────────────────────── */
.login-wrapper {
    min-height: 100vh;
    background: var(--grad-main);
    display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.login-card {
    background: #0b1e15; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px; padding: 2.5rem; width: 100%; max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5); color: #e0e0e0;
}
.login-logo {
    width: 70px; height: 70px;
    background: var(--grad-hero);
    border-radius: 18px; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem; font-size: 2rem; color: #fff;
}

/* ── Exam Page ──────────────────────────── */
.exam-wrapper { background: var(--dark); min-height: 100vh; }
.exam-header {
    background: var(--grad-hero);
    color: #fff; padding: 1rem 1.5rem; position: sticky; top: 0; z-index: 1030;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.exam-timer {
    background: rgba(0,0,0,0.2); border-radius: 10px; padding: 0.5rem 1rem;
    font-size: 1.25rem; font-weight: 700; letter-spacing: 2px;
}
.exam-timer.warning { background: rgba(251,133,0,0.8); }
.exam-timer.danger  { background: rgba(239,35,60,0.9); animation: pulse 1s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.7; } }

.question-nav {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; padding: 1rem; box-shadow: var(--card-shadow);
}
.question-nav .btn-num {
    width: 36px; height: 36px; border-radius: 8px; font-size: 0.8rem; font-weight: 600;
    border: 1.5px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); color: #e0e0e0;
    display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s;
}
.question-nav .btn-num:hover           { border-color: var(--primary); color: var(--primary); }
.question-nav .btn-num.answered        { background: var(--success); border-color: var(--success); color: #fff; }
.question-nav .btn-num.current         { background: var(--primary); border-color: var(--primary); color: #fff; }
.question-nav .btn-num.answered.current{ background: var(--primary); border-color: var(--primary); }

.question-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; padding: 1.5rem; box-shadow: var(--card-shadow);
}
.question-number {
    background: var(--grad-hero); color: #fff; width: 36px; height: 36px;
    border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem; margin-right: 0.5rem;
}
.option-label {
    display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.875rem 1rem;
    border: 1.5px solid rgba(255,255,255,0.1); border-radius: 10px; cursor: pointer;
    transition: all 0.2s; margin-bottom: 0.5rem;
}
.option-label:hover { border-color: var(--primary); background: rgba(255,255,255,0.05); }
.option-label.selected { border-color: var(--primary); background: rgba(45,106,79,0.2); }
.option-label input[type="radio"] { display: none; }
.option-badge {
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,0.05); border: 1.5px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.8rem; flex-shrink: 0; transition: all 0.2s;
}
.option-label.selected .option-badge { background: var(--primary); border-color: var(--primary); color: #fff; }

.img-question { max-width: 100%; max-height: 300px; object-fit: contain; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); margin: 0.5rem 0; }
.img-option { max-width: 200px; max-height: 120px; object-fit: contain; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1); display: block; margin-bottom: 0.25rem; }

/* ── Result Page ────────────────────────── */
.result-score {
    width: 130px; height: 130px; border-radius: 50%; border: 6px solid var(--primary);
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    margin: 0 auto; background: var(--grad-hero); color: #fff;
}
.result-score .score-val { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.result-score .score-label { font-size: 0.75rem; opacity: 0.85; }

/* ── Print Card ─────────────────────────── */
@media print {
    body * { visibility: hidden; }
    .print-area, .print-area * { visibility: visible; }
    .print-area { position: absolute; left: 0; top: 0; width: 100%; }
    .no-print { display: none !important; }
}
.kartu-ujian {
    border: 2px solid #333; border-radius: 8px; padding: 1rem; page-break-inside: avoid;
    background: #fff; color: #000; font-size: 0.85rem;
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1039; }
    .sidebar-overlay.show { display: block; }
}
@media (max-width: 575.98px) {
    .page-content { padding: 1rem; }
    .login-card   { padding: 1.75rem 1.25rem; }
    .exam-header  { padding: 0.75rem 1rem; }
    .stat-card h3 { font-size: 1.5rem; }
}

/* ── Select2 Dark Theme Overrides ──────────────── */
.select2-container--bootstrap-5 .select2-selection {
    background-color: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    box-shadow: none !important;
}
.select2-container--bootstrap-5 .select2-selection:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(82, 183, 136, 0.25) !important;
}
.select2-container--bootstrap-5 .select2-selection__rendered {
    color: var(--text-color) !important;
}
.select2-container--bootstrap-5 .select2-dropdown {
    background-color: var(--sidebar-bg); /* Darker dropdown */
    border-color: var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    overflow: hidden;
}
.select2-container--bootstrap-5 .select2-results__option {
    color: #e0e0e0;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}
.select2-container--bootstrap-5 .select2-results__option[aria-selected="true"] {
    background-color: rgba(255,255,255,0.05);
    color: #fff;
}
.select2-container--bootstrap-5 .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary);
    color: #fff;
}
.select2-container--bootstrap-5 .select2-search__field {
    background-color: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}
.select2-container--bootstrap-5 .select2-search__field:focus {
    border-color: var(--primary);
    outline: none;
}

/* ── Pagination Dark Theme ──────────────── */
.pagination {
    margin-bottom: 0;
}
.page-item .page-link {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    transition: all 0.2s;
}
.page-item .page-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.page-item.disabled .page-link {
    background-color: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
}