/* ── EpicBullz Global Styles ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ── Animated Gradient Background ─────────────────────────────────────────── */
.bg-animated {
    min-height: 100vh;
    background: linear-gradient(-45deg, #0f0c29, #302b63, #1a1a2e, #16213e, #0f3460);
    background-size: 400% 400%;
    animation: gradientBG 18s ease infinite;
}
@keyframes gradientBG {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ── Glassmorphism ─────────────────────────────────────────────────────────── */
.glass {
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 16px;
}
.glass-white {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.glass-dark {
    background: rgba(15,12,41,0.75);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
}

/* ── Quiz Timer ────────────────────────────────────────────────────────────── */
#quiz-timer {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    transition: color .3s;
}
#quiz-timer.warning { color: #fbbf24; }
#quiz-timer.danger  { color: #f87171; animation: pulse 1s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.6} }

/* ── Question nav dots ─────────────────────────────────────────────────────── */
.q-dot {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.7);
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all .2s;
}
.q-dot:hover   { border-color: #fff; color: #fff; }
.q-dot.answered{ background: #16a34a; border-color: #16a34a; color: #fff; }
.q-dot.current { background: #6366f1; border-color: #6366f1; color: #fff; }
.q-dot.skipped { border-color: #f87171; color: #f87171; }

/* ── Options ───────────────────────────────────────────────────────────────── */
.option-label {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s;
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    user-select: none;
}
.option-label:hover { border-color: #6366f1; background: rgba(99,102,241,0.15); }
.option-label input[type=radio] { display: none; }
.option-label.selected {
    border-color: #6366f1; background: rgba(99,102,241,0.25); color: #fff;
}
.option-label.correct  { border-color: #16a34a; background: rgba(22,163,74,0.2); color: #fff; }
.option-label.wrong    { border-color: #dc2626; background: rgba(220,38,38,0.2);  color: #fff; }
.option-letter {
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px; flex-shrink: 0;
}

/* ── Progress bar ──────────────────────────────────────────────────────────── */
.progress-bar-custom {
    height: 6px; border-radius: 3px;
    background: rgba(255,255,255,0.15);
    overflow: hidden;
}
.progress-fill {
    height: 100%; border-radius: 3px;
    background: linear-gradient(90deg,#6366f1,#8b5cf6);
    transition: width .4s ease;
}

/* ── Result Card ───────────────────────────────────────────────────────────── */
.score-circle {
    width: 140px; height: 140px;
    border-radius: 50%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    border: 6px solid;
    margin: 0 auto;
    font-weight: 800;
}
.stat-badge {
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    text-align: center;
}

/* ── Teacher Panel ─────────────────────────────────────────────────────────── */
.sidebar-teacher {
    width: 240px; min-height: 100vh;
    background: #111827;
    position: fixed; left: 0; top: 0;
    display: flex; flex-direction: column;
    overflow-y: auto; z-index: 100;
}
.teacher-main { margin-left: 240px; }
.t-nav-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; border-radius: 8px;
    color: #9ca3af; font-size: 14px; font-weight: 500;
    text-decoration: none; transition: all .15s;
}
.t-nav-link:hover, .t-nav-link.active {
    background: #1f2937; color: #fff;
}
.t-nav-link.active svg { color: #6366f1; }

/* ── Utilities ─────────────────────────────────────────────────────────────── */
.text-white-70 { color: rgba(255,255,255,0.7); }
.text-white-50 { color: rgba(255,255,255,0.5); }
.btn-primary-custom {
    background: #6366f1; color: #fff; border: none;
    padding: 12px 28px; border-radius: 10px;
    font-weight: 700; font-size: 15px; cursor: pointer;
    transition: all .2s;
}
.btn-primary-custom:hover { background: #4f46e5; transform: translateY(-1px); }
.btn-teal {
    background: #05887d; color: #fff; border: none;
    padding: 10px 22px; border-radius: 8px;
    font-weight: 600; font-size: 14px; cursor: pointer;
    transition: all .15s;
}
.btn-teal:hover { background: #046e65; }

@media (max-width: 991px) {
    .sidebar-teacher { transform: translateX(-100%); transition: transform .25s; }
    .sidebar-teacher.open { transform: none; }
    .teacher-main { margin-left: 0 !important; }
}
