:root {
  --bg-main: #f5f7fb;
  --card-bg: #ffffff;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --radius: 12px;
}

html, body {
  height: 100%;
}

body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}

/* Headings */
h1, h2, h3, h4 {
  font-weight: 600;
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Badges */
.badge-status {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-active {
  background: #dcfce7;
  color: var(--success);
}

.badge-closed {
  background: #fee2e2;
  color: var(--danger);
}

/* Text helpers */
.text-muted {
  color: var(--text-muted) !important;
}

/* Page spacing */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px;
}
/* ===== Test page ===== */

.test-timer {
  background: #111827;
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.question-card h5 {
  font-size: 1.1rem;
  line-height: 1.5;
}

.option-row {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 14px;
  transition: background .15s, border-color .15s;
}

.option-row:hover {
  background: #f8fafc;
}

.option-row input:checked + label {
  font-weight: 600;
}

.q-item {
  font-size: 0.9rem;
}

.q-item.answered {
  background: #ecfeff;
  border-left: 4px solid var(--primary);
}

.q-item.active {
  background: #eef2ff;
  border-left: 4px solid var(--primary-dark);
}
/* ===== Result page ===== */

.result-score {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
}

.result-box {
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.result-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}
/* ===== Auth pages ===== */

.auth-wrapper {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-card h3 {
  text-align: center;
}

.auth-footer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.timeline {
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-step {
  text-align: center;
  min-width: 110px;
}

.timeline-step .circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #dee2e6;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  font-weight: 600;
}

.timeline-step.active .circle {
  background: #6f42c1;
  color: #fff;
}

.timeline-step .label {
  font-size: 0.85rem;
  color: #6c757d;
}

.timeline-step.active .label {
  color: #6f42c1;
  font-weight: 600;
}

.line {
  flex: 1;
  height: 3px;
  background: #dee2e6;
  margin: 0 8px;
}

.line.active {
  background: #6f42c1;
}
