:root {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --danger: #ef4444;
  --success: #16a34a;
  --warning: #f59e0b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container {
  width: 100%;
  max-width: 800px;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  padding: 32px;
  margin-bottom: 24px;
}

header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

h1 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 6px;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.meta-badges {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.85rem;
  background: #e0f2fe;
  color: #0369a1;
  padding: 4px 10px;
  border-radius: 9999px;
  font-weight: 500;
}

.badge-warn {
  background: #fef3c7;
  color: #b45309;
}

.notice-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #92400e;
}

.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text);
}

input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

input[type="text"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 100%;
}

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

.btn:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.btn-submit {
  margin-top: 24px;
  padding: 16px;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.quiz-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f1f5f9;
  padding: 12px 18px;
  border-radius: 8px;
  margin-bottom: 24px;
  position: sticky;
  top: 12px;
  z-index: 10;
  border: 1px solid var(--border);
}

.timer-display {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.timer-warning {
  color: var(--danger) !important;
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  from { opacity: 1; }
  to { opacity: 0.6; }
}

.candidate-info {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.session-alert {
  background: #eff6ff;
  border-left: 4px solid var(--primary);
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: #1e40af;
}

.question-card {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.question-card:last-child {
  border-bottom: none;
}

.question-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.4;
}

.option-label {
  display: flex;
  align-items: flex-start;
  padding: 10px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s, border-color 0.15s;
}

.option-label:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

.option-label input[type="radio"] {
  margin-top: 4px;
  margin-right: 12px;
  cursor: pointer;
}

.score-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #e0f2fe;
  color: var(--primary-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 24px auto;
  font-size: 2.5rem;
  font-weight: 800;
  border: 4px solid var(--primary);
}

.score-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.summary-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  text-align: left;
}

.summary-card div {
  font-size: 0.95rem;
}

.review-item {
  text-align: left;
  margin-top: 20px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.review-correct {
  border-left: 5px solid var(--success);
  background: #f0fdf4;
}

.review-incorrect {
  border-left: 5px solid var(--danger);
  background: #fef2f2;
}

.hidden {
  display: none !important;
}
