* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; }
body { background: #f1f5f9; color: #1e293b; min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; }
.navbar { background: #0f294a; color: #fff; padding: 14px 24px; box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.nav-container { max-width: 960px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.nav-brand { font-weight: 700; font-size: 1.1rem; letter-spacing: 0.5px; }
.nav-links { display: flex; gap: 10px; }
.nav-links a { color: #fff; text-decoration: none; font-size: 0.88rem; font-weight: 600; padding: 7px 14px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.25); transition: 0.2s; }
.nav-links a.active, .nav-links a:hover { background: #1d4ed8; border-color: #1d4ed8; }
.main-wrap { width: 100%; max-width: 520px; margin: 32px auto; padding: 0 16px; }
.main-wrap.wide { max-width: 820px; }
.card { background: #fff; border-radius: 12px; padding: 32px; box-shadow: 0 10px 25px rgba(15, 41, 74, 0.08); border-top: 5px solid #0f294a; }
.header-box { text-align: center; margin-bottom: 24px; }
.header-box img { height: 64px; width: auto; object-fit: contain; margin-bottom: 12px; }
.header-box h1 { font-size: 1.5rem; color: #0f294a; margin-bottom: 4px; }
.header-box p { font-size: 0.88rem; color: #64748b; }
.alert-error { background: #fef2f2; border-left: 4px solid #dc2626; color: #991b1b; padding: 12px 14px; border-radius: 6px; font-size: 0.88rem; margin-bottom: 18px; font-weight: 500; }
.alert-info { background: #eff6ff; border-left: 4px solid #1d4ed8; color: #1e3a8a; padding: 12px 14px; border-radius: 6px; font-size: 0.92rem; margin-bottom: 18px; font-weight: 600; text-align: center; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; color: #334155; margin-bottom: 6px; }
.form-control { width: 100%; padding: 11px 14px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 1rem; transition: 0.2s; background: #fff; }
.form-control:focus { outline: none; border-color: #1d4ed8; box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15); }
.terms-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; font-size: 0.82rem; color: #475569; line-height: 1.4; }
.terms-box input { margin-top: 3px; width: 16px; height: 16px; cursor: pointer; }
.btn-primary { width: 100%; background: #0f294a; color: #fff; border: none; padding: 13px; border-radius: 8px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: 0.2s; }
.btn-primary:hover { background: #1e40af; }
.btn-success { background: #059669; color: #fff; border: none; padding: 10px 18px; border-radius: 8px; font-size: 0.9rem; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; transition: 0.2s; }
.btn-success:hover { background: #047857; }
.card-footer { margin-top: 22px; padding-top: 16px; border-top: 1px solid #e2e8f0; display: flex; justify-content: space-between; font-size: 0.82rem; }
.card-footer a { color: #1d4ed8; text-decoration: none; font-weight: 600; }
.card-footer a.admin-link { color: #64748b; }
.footer { text-align: center; font-size: 0.78rem; color: #94a3b8; padding: 16px; }
.timer-bar { position: sticky; top: 0; background: #0f294a; color: #fff; padding: 12px 20px; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.timer-inner { max-width: 820px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.timer-badge { background: #dc2626; padding: 6px 14px; border-radius: 8px; font-family: monospace; font-size: 1.2rem; font-weight: 700; }
.question-card { background: #fff; border-radius: 10px; padding: 22px; margin-bottom: 18px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); border-left: 5px solid #1d4ed8; }
.option-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 8px; margin-top: 8px; cursor: pointer; font-size: 0.92rem; }
.option-item:hover { background: #eff6ff; border-color: #93c5fd; }
.result-item { border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; margin-bottom: 12px; background: #f8fafc; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.badge-pass { background: #d1fae5; color: #065f46; padding: 3px 10px; border-radius: 99px; font-size: 0.75rem; font-weight: 700; }
.badge-fail { background: #fee2e2; color: #991b1b; padding: 3px 10px; border-radius: 99px; font-size: 0.75rem; font-weight: 700; }
