:root { --ink: #172033; --muted: #718096; --primary: #4658e8; --surface: #ffffff; --bg: #f5f7fb; }
body { background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; }
.page-shell { min-height: 100vh; }.auth-layout { min-height: 100vh; display: grid; grid-template-columns: 1fr 480px; max-width: 1280px; margin: auto; align-items: center; gap: 8rem; padding: 3rem 5rem; }
.auth-brand { max-width: 570px; }.brand-mark { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--primary); color: white; font-weight: 800; font-size: 1.5rem; margin-bottom: 2.5rem; box-shadow: 0 12px 30px #4658e83d; }.eyebrow { letter-spacing: .14em; font-size: .72rem; font-weight: 800; color: var(--muted); }.auth-brand h1 { font-size: clamp(2.8rem, 5vw, 5rem); line-height: 1.04; letter-spacing: -.06em; font-weight: 800; margin: 1rem 0 1.5rem; }.auth-brand h1 span { color: var(--primary); }.brand-copy { color: var(--muted); font-size: 1.05rem; max-width: 420px; line-height: 1.7; }.auth-card, .card { background: var(--surface); border: 1px solid #e8ebf2; border-radius: 24px; box-shadow: 0 20px 60px #243b6b0d; }.auth-card { padding: 2.5rem; }.auth-card h2 { font-size: 1.8rem; letter-spacing: -.03em; font-weight: 750; }.form-label { font-weight: 650; font-size: .9rem; }.form-control { border-color: #dfe3ec; border-radius: 12px; }.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 .25rem #4658e81a; }.btn-primary { background: var(--primary); border-color: var(--primary); border-radius: 12px; font-weight: 700; }.flash-stack { position: fixed; top: 1rem; right: 1rem; z-index: 10; width: min(390px, calc(100% - 2rem)); }.error-page { min-height: 100vh; display: grid; place-content: center; text-align: center; padding: 2rem; }.error-code { color: var(--primary); font-size: 6rem; line-height: 1; font-weight: 900; letter-spacing: -.08em; }.error-page h1 { margin-top: 1rem; }
@media (max-width: 900px) { .auth-layout { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1.25rem; }.auth-brand h1 { font-size: 3.2rem; }.brand-mark { margin-bottom: 1.5rem; }.auth-card { padding: 1.5rem; } }
.brand-mark.small { width: 34px; height: 34px; border-radius: 10px; font-size: 1rem; margin: 0; display: inline-grid; }.admin-shell { display: flex; min-height: 100vh; }.sidebar { width: 250px; flex: 0 0 250px; background: #111827; color: #cbd5e1; padding: 1.5rem 1rem; display: flex; flex-direction: column; }.side-brand { display: flex; align-items: center; gap: .7rem; color: #fff; font-size: 1.15rem; font-weight: 800; text-decoration: none; padding: .5rem .75rem 2rem; }.side-nav { display: grid; gap: .3rem; }.side-nav a, .side-bottom a, .side-bottom button { color: #94a3b8; text-decoration: none; padding: .75rem; border: 0; background: none; text-align: left; border-radius: 10px; font-size: .9rem; width: 100%; }.side-nav a:hover, .side-bottom a:hover, .side-bottom button:hover { background: #1e293b; color: white; }.side-nav i, .side-bottom i { width: 24px; display: inline-block; }.side-bottom { margin-top: auto; border-top: 1px solid #253247; padding-top: 1rem; }.admin-main { flex: 1; padding: 2.5rem clamp(1.25rem, 4vw, 4rem); min-width: 0; }.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }.topbar h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.05em; margin: 0; }.user-chip { display: grid; text-align: right; font-weight: 700; }.user-chip small { color: var(--muted); font-weight: 400; }.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }.stat-card { background: white; border: 1px solid #e8ebf2; border-radius: 18px; padding: 1.25rem; position: relative; overflow: hidden; }.stat-card span { display: block; color: var(--muted); font-size: .85rem; }.stat-card strong { display: block; font-size: 2rem; margin-top: .4rem; }.stat-card i { position: absolute; right: 1.2rem; top: 1.25rem; color: #4658e8; font-size: 1.4rem; }.content-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; }.panel, .form-panel { background: white; border: 1px solid #e8ebf2; border-radius: 18px; padding: 1.5rem; }.form-panel { max-width: 760px; }.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }.panel h2 { font-size: 1.25rem; font-weight: 800; margin: 0; }.table { --bs-table-bg: transparent; }.table thead th { color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; border-bottom-color: #edf0f5; }.table td { border-bottom-color: #edf0f5; }.badge { border-radius: 999px; padding: .42em .7em; font-weight: 700; font-size: .7rem; }.badge-draft { background: #eef2f7; color: #64748b; }.badge-published { background: #dcfce7; color: #15803d; }.badge-closed, .badge-expired { background: #fee2e2; color: #b91c1c; }.badge-completed { background: #dbeafe; color: #1d4ed8; }.badge-in_progress { background: #fef3c7; color: #a16207; }.activity-row { display: flex; align-items: center; gap: .75rem; padding: .8rem 0; border-bottom: 1px solid #edf0f5; }.activity-row small, .activity-row strong { display: block; }.activity-row small { color: var(--muted); font-size: .78rem; }.avatar { width: 32px; height: 32px; border-radius: 50%; background: #e0e7ff; color: #4338ca; display: grid; place-items: center; font-weight: 800; }.empty-state { color: var(--muted); text-align: center; padding: 2rem 1rem; }.detail-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }.code-large { font-size: 1.3rem; letter-spacing: .1em; color: var(--primary); }.question-row { display: flex; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid #edf0f5; align-items: flex-start; }.question-number { color: var(--primary); font-weight: 800; padding-top: .2rem; }.option-preview { display: flex; flex-wrap: wrap; gap: .4rem .8rem; color: var(--muted); font-size: .82rem; margin-top: .6rem; }.option-preview .correct { color: #15803d; font-weight: 700; }.check-list { display: grid; gap: .75rem; }.check-list label { color: #475569; }.check-list input { margin-right: .5rem; accent-color: var(--primary); }.participant-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; background: radial-gradient(circle at 20% 20%, #e0e7ff 0, transparent 35%), var(--bg); }.participant-card { width: min(100%, 500px); background: white; padding: clamp(1.5rem, 5vw, 3rem); border: 1px solid #e8ebf2; border-radius: 24px; box-shadow: 0 24px 70px #243b6b12; text-align: center; }.participant-card h1 { font-weight: 850; letter-spacing: -.055em; line-height: 1.05; }.participant-card h1 span { color: var(--primary); }.code-input { text-align: center; text-transform: uppercase; letter-spacing: .25em; font-weight: 800; }.instruction-card { max-width: 620px; }.instruction-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 2rem 0; }.instruction-meta div { background: #f7f8fc; padding: 1rem; border-radius: 12px; text-align: left; }.instruction-meta span, .instruction-meta strong { display: block; }.instruction-meta span { color: var(--muted); font-size: .75rem; }.instruction-meta strong { margin-top: .25rem; }.instruction-card h3 { font-size: 1rem; margin-top: 2rem; }.instruction-card li { padding: .35rem; color: #475569; }.quiz-page { min-height: 100vh; background: #f7f8fc; }.quiz-top { background: white; border-bottom: 1px solid #e8ebf2; padding: 1.2rem clamp(1rem, 5vw, 5rem); display: flex; align-items: center; justify-content: space-between; }.quiz-top h1 { font-size: 1.2rem; margin: 0; font-weight: 800; }.timer-box { color: #b91c1c; background: #fef2f2; border-radius: 12px; padding: .7rem 1rem; font-size: 1.15rem; font-weight: 800; }.quiz-layout { max-width: 1100px; margin: 2rem auto; padding: 0 1rem; display: grid; grid-template-columns: 1fr 280px; gap: 1.5rem; }.quiz-question-panel, .question-nav { background: white; border: 1px solid #e8ebf2; border-radius: 20px; padding: clamp(1.25rem, 4vw, 2.5rem); }.question-progress { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 2rem; }.save-state { color: #15803d; font-size: .85rem; }.question-text { font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.45; font-weight: 750; margin-bottom: 2rem; }.answer-list { display: grid; gap: .75rem; }.answer-choice { display: flex; align-items: center; gap: .85rem; border: 1px solid #e3e7ef; border-radius: 13px; padding: 1rem; cursor: pointer; transition: .15s; }.answer-choice:hover, .answer-choice:has(input:checked) { border-color: var(--primary); background: #f2f4ff; }.answer-choice input { display: none; }.choice-letter { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #f1f5f9; font-weight: 800; color: #64748b; }.answer-choice:has(input:checked) .choice-letter { color: white; background: var(--primary); }.quiz-actions { display: flex; justify-content: space-between; gap: .5rem; margin-top: 2.5rem; }.question-nav h3 { font-size: 1rem; font-weight: 800; margin-bottom: 1rem; }.nav-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }.nav-dot { border: 1px solid #e3e7ef; background: white; border-radius: 8px; padding: .5rem .2rem; color: #64748b; }.nav-dot.active { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 2px #4658e81a; }.nav-dot.answered { background: var(--primary); border-color: var(--primary); color: white; }.legend { display: grid; gap: .5rem; margin-top: 1.5rem; color: var(--muted); font-size: .78rem; }.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; border: 1px solid #cbd5e1; margin-right: .3rem; }.dot.answered { background: var(--primary); border-color: var(--primary); }.result-icon { width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: #dcfce7; color: #16a34a; font-size: 1.8rem; }.score-ring { width: 150px; height: 150px; margin: 1.5rem auto; border-radius: 50%; display: grid; place-content: center; border: 12px solid #e0e7ff; }.score-ring strong { font-size: 2.7rem; line-height: 1; }.score-ring span { color: var(--muted); font-size: .8rem; }.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #edf0f5; border-bottom: 1px solid #edf0f5; padding: 1rem 0; }.result-stats strong, .result-stats span { display: block; }.result-stats span { color: var(--muted); font-size: .8rem; }.result-status { margin-top: 1.5rem; padding: .75rem; border-radius: 10px; font-weight: 800; }.result-status.pass { color: #15803d; background: #dcfce7; }.result-status.fail { color: #b91c1c; background: #fee2e2; }
@media (max-width: 800px) { .sidebar { width: 64px; flex-basis: 64px; padding: 1rem .5rem; }.side-brand { padding: .5rem 0 1.5rem; justify-content: center; }.side-brand span:last-child, .side-nav a:not(:has(i)), .side-nav a, .side-bottom a, .side-bottom button { font-size: 0; text-align: center; }.side-nav i, .side-bottom i { font-size: 1.1rem; }.admin-main { padding: 1.5rem 1rem; }.stat-grid { grid-template-columns: repeat(2, 1fr); }.content-grid { grid-template-columns: 1fr; }.topbar h1 { font-size: 1.5rem; }.user-chip { font-size: .8rem; }.quiz-layout { grid-template-columns: 1fr; margin-top: 1rem; }.question-nav { order: -1; padding: 1rem; }.legend { display: flex; justify-content: space-between; }.detail-head { align-items: flex-start; gap: 1rem; flex-direction: column; } }
@media (max-width: 480px) { .stat-grid { gap: .6rem; }.stat-card { padding: 1rem; }.stat-card strong { font-size: 1.5rem; }.instruction-meta { grid-template-columns: 1fr; }.quiz-actions .btn { font-size: .82rem; padding: .65rem .7rem; }.quiz-top { padding: 1rem; }.quiz-top h1 { font-size: .95rem; } }
