/* ================= TIMER BOX ================= */

.exam-timer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: #f5f7fa;
  padding: 8px 14px;
  border-radius: 6px;
  border-left: 4px solid #3273dc;
  min-width: 130px;
  transition: all 0.3s ease;
}

.timer-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timer-value {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: monospace;
  color: #3273dc;
  transition: color 0.3s ease;
}

/* ================= TIMER STATES ================= */

/* 5 minutes left */
.timer-warning {
  color: #ff9800 !important;
}

/* 1 minute left */
.timer-danger {
  color: #ff3860 !important;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

.timer-value {
  transition: color 0.3s ease;
}





/* ================= GLOBAL CLEANUP ================= */

body {
  background: #f8fafc;
}

/* ================= STICKY HEADER ================= */

.exam-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.exam-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
}

.exam-title {
  font-weight: 600;
  font-size: 1rem;
  color: #363636;
}

/* ================= TIMER ================= */

.exam-timer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: #f5f7fa;
  padding: 8px 14px;
  border-radius: 6px;
  border-left: 4px solid #3273dc;
  min-width: 110px;
}

.timer-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timer-value {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: monospace;
  color: #3273dc;
  transition: color 0.3s ease;
}

/* ================= TIMER WARNING STATES ================= */

.timer-warning {
  color: #ff9800 !important;
}

.timer-danger {
  color: #ff3860 !important;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* ================= QUESTION FIX ================= */

.question-text p {
  display: inline;
  margin: 0;
}

/* ================= OPTION STYLING ================= */

.option-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 0.5px solid #e5e7eb;
  background: #ffffff;
  transition: all 0.2s ease;
  cursor: pointer;
}

/* Hover effect (steady, no movement) */
.option-label:hover {
  background: #f3f6fb;
  border-color: #dbe3f0;
}

/* Radio / Checkbox styling */
.option-label input {
  margin: 0;
  accent-color: #3273dc;
}

/* Full-row selected highlight (modern browsers) */
.option-label:has(input:checked) {
  background: #e8f0fe;
  border-color: #3273dc;
  box-shadow: 0 0 0 1px #3273dc inset;
}

/* Option text */
.option-label span {
  flex: 1;
}

/* ================= BUTTON POLISH ================= */

button,
.button {
  transition: all 0.2s ease;
}

button:hover,
.button:hover {
  transform: translateY(-1px);
}

/* ================= CONTENT SPACING ================= */

.exam-container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

/* ================= TEXT INPUT STYLE ================= */

.input {
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.input:focus {
  border-color: #3273dc;
  box-shadow: 0 0 0 1px #3273dc inset;
}
select {
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

select:focus {
  border-color: #3273dc;
}
