/* ==========================================================================
   APSIS PRO UJIAN 2026 - Student Exam Portal & Live Exam Room Styles
   ========================================================================== */

/* Student Top Bar */
.exam-live-header {
  background: var(--neutral-0);
  border-bottom: 2px solid var(--neutral-200);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
}

.exam-title-badge {
  font-size: 16px;
  font-weight: 800;
  color: var(--neutral-900);
  display: flex;
  align-items: center;
  gap: 10px;
}

.exam-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--neutral-900);
  color: var(--neutral-0);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-family: monospace;
  font-size: 18px;
  font-weight: 800;
  box-shadow: var(--shadow-md);
  letter-spacing: 1px;
}

.exam-timer-pill.urgent {
  background-color: var(--danger-500);
  animation: timerBlink 1s infinite alternate;
}

@keyframes timerBlink {
  from { opacity: 1; }
  to { opacity: 0.7; }
}

.autosave-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--success-700);
  background: var(--success-50);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid #BBF7D0;
}

.autosave-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success-500);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

/* Exam Layout Grid */
.exam-layout-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  max-width: 1300px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .exam-layout-grid {
    grid-template-columns: 1fr;
  }
}

/* Question Focus Card */
.question-focus-card {
  background: var(--neutral-0);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  min-height: 520px;
  justify-content: space-between;
}

.question-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--neutral-100);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.question-number-tag {
  font-size: 15px;
  font-weight: 800;
  color: var(--brand-700);
}

.question-body-text {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--neutral-900);
  margin-bottom: 28px;
}

/* Student Option Radio Card */
.student-options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.student-option-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 2px solid var(--neutral-200);
  background: var(--neutral-0);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  user-select: none;
}

.student-option-btn:hover {
  border-color: var(--brand-300);
  background: var(--brand-50);
}

.student-option-btn.selected {
  border-color: var(--brand-600);
  background: #EFF6FF;
  box-shadow: 0 0 0 1px var(--brand-600);
}

.option-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--neutral-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--neutral-700);
  background: var(--neutral-0);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.student-option-btn.selected .option-circle {
  border-color: var(--brand-600);
  background: var(--brand-600);
  color: var(--neutral-0);
}

.option-text-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--neutral-800);
}

.student-option-btn.selected .option-text-label {
  font-weight: 700;
  color: var(--brand-900);
}

/* Question Action Footer */
.question-nav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--neutral-100);
  padding-top: 24px;
}

.btn-flag {
  background: var(--warning-50);
  color: var(--warning-800);
  border: 1px solid #FDE68A;
}

.btn-flag.active {
  background: var(--warning-500);
  color: var(--neutral-0);
  border-color: var(--warning-500);
}

/* Right Question Navigator Palette */
.navigator-card {
  background: var(--neutral-0);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 96px;
}

.navigator-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--neutral-900);
}

.navigator-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.nav-tile-btn {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  border: 2px solid var(--neutral-300);
  background: var(--neutral-0);
  font-size: 14px;
  font-weight: 800;
  color: var(--neutral-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.nav-tile-btn:hover {
  transform: scale(1.05);
}

.nav-tile-btn.current {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.4);
}

.nav-tile-btn.answered {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: var(--neutral-0);
}

.nav-tile-btn.flagged {
  background: var(--warning-500);
  border-color: var(--warning-500);
  color: var(--neutral-0);
}

/* Result Sheet Card */
.result-sheet-card {
  background: var(--neutral-0);
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-200);
  padding: 40px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.score-display-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-600), var(--accent-cyan));
  color: var(--neutral-0);
  margin: 0 auto 24px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.score-num {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.score-max {
  font-size: 13px;
  opacity: 0.8;
  font-weight: 600;
}
