:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
}

body {
    background-color: #f3f4f6;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* ===== LOGIN ===== */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
}
.login-wrapper { width: 100%; max-width: 420px; padding: 16px; }
.login-card { border-radius: 18px; }
.login-icon { font-size: 42px; }

/* ===== SIDEBAR ADMIN ===== */
.wrapper { display: flex; min-height: 100vh; }
.sidebar {
    width: 250px;
    background: #111827;
    color: #e5e7eb;
    flex-shrink: 0;
    min-height: 100vh;
}
.sidebar .brand {
    padding: 20px 18px;
    font-weight: 700;
    font-size: 18px;
    border-bottom: 1px solid #1f2937;
    color: #fff;
}
.sidebar a {
    display: block;
    padding: 11px 20px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14.5px;
    border-left: 3px solid transparent;
}
.sidebar a:hover, .sidebar a.active {
    background: #1f2937;
    color: #fff;
    border-left-color: var(--primary);
}
.sidebar .section-title {
    padding: 14px 20px 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7280;
}
.content { flex-grow: 1; padding: 24px; max-width: 100%; }
.topbar {
    background: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.stat-card {
    border-radius: 14px;
    border: none;
    color: #fff;
    padding: 20px;
}
.stat-card h3 { font-weight: 700; font-size: 28px; margin: 0; }
.stat-card p { margin: 0; opacity: .9; font-size: 13.5px; }
.bg-blue { background: linear-gradient(135deg,#2563eb,#1e40af); }
.bg-green { background: linear-gradient(135deg,#16a34a,#15803d); }
.bg-orange { background: linear-gradient(135deg,#ea580c,#c2410c); }
.bg-purple { background: linear-gradient(135deg,#7c3aed,#5b21b6); }

.card { border-radius: 14px; border: 1px solid #eef0f2; }
.table thead { background: #f9fafb; }
.badge-token {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    letter-spacing: 3px;
    background: #eef2ff;
    color: #3730a3;
    padding: 6px 14px;
    border-radius: 8px;
}

/* ===== EXAM ===== */
.exam-body { background: #eef1f5; }
.exam-topbar {
    background: #111827;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
}
.exam-timer {
    background: #1f2937;
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-family: monospace;
    font-size: 18px;
}
.exam-timer.danger { background: #b91c1c; }
.question-nav-btn {
    width: 38px; height: 38px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
}
.question-nav-btn.answered { background: #16a34a; color: #fff; border-color: #16a34a; }
.question-nav-btn.doubt { background: #f59e0b; color: #fff; border-color: #f59e0b; }
.question-nav-btn.active-q { outline: 3px solid #2563eb; }
.option-label {
    display: block;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: .15s;
}
.option-label:hover { background: #f8fafc; }
.option-label.selected { border-color: var(--primary); background: #eff6ff; }

.print-card {
    border: 2px solid #111827;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 14px;
    page-break-inside: avoid;
}

@media (max-width: 768px) {
    .sidebar { position: fixed; left: -260px; top: 0; height: 100%; z-index: 999; transition: .2s; }
    .sidebar.show { left: 0; }
    .content { padding: 14px; }
}
