/* ==========================================================================
   EduPeak Live Exam Room & MCQ Sprint Styles
   ========================================================================== */

/* Fullscreen Exam Hall Shell */
.exam-hall-container {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #0B0F19;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeIn 0.25s ease-out;
}

/* Exam Top Header */
.exam-header {
  height: 60px;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  backdrop-filter: blur(16px);
  z-index: 10;
}

.exam-info-col {
  display: flex;
  flex-direction: column;
}

.exam-title {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.exam-status-indicator {
  font-size: 11px;
  color: #10B981;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Big Live Exam Countdown Timer */
.exam-timer-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 6px 12px;
  border-radius: 12px;
  font-family: 'Fira Code', monospace;
  font-size: 15px;
  font-weight: 800;
  color: #38BDF8;
}

.exam-timer-box.warning {
  background: rgba(245, 158, 11, 0.2);
  border-color: #F59E0B;
  color: #FBBF24;
}

.exam-timer-box.danger {
  background: rgba(239, 68, 68, 0.25);
  border-color: #EF4444;
  color: #F87171;
  animation: timerBlink 1s infinite alternate;
}

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

/* Exam Content Layout */
.exam-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scrollbar-width: none;
}
.exam-body::-webkit-scrollbar { display: none; }

/* Question Presentation Card */
.question-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 22px;
  backdrop-filter: blur(12px);
}

.q-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.q-number-pill {
  background: #2563EB;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
}

.q-points-pill {
  font-size: 12px;
  font-weight: 700;
  color: #94A3B8;
}

.q-text {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.55;
  color: #F8FAFC;
  margin-bottom: 20px;
}

/* Multiple Choice Options List */
.q-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.q-option-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.q-option-item:hover {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
}

.q-option-item.selected {
  background: rgba(37, 99, 235, 0.25);
  border-color: #38BDF8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

.q-option-letter {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  font-size: 12px;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.q-option-item.selected .q-option-letter {
  background: #38BDF8;
  color: #0F172A;
}

.q-option-text {
  font-size: 14px;
  color: #E2E8F0;
  flex: 1;
}

/* Question Navigator Grid Drawer */
.q-nav-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  padding: 14px 0;
}

.q-grid-btn {
  aspect-ratio: 1;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.q-grid-btn.answered {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10B981;
  color: #34D399;
}

.q-grid-btn.current {
  border-color: #38BDF8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
  color: #FFFFFF;
}

/* Exam Bottom Footer */
.exam-footer {
  height: 70px;
  background: rgba(15, 23, 42, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  backdrop-filter: blur(16px);
}

.btn-nav-q {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-nav-q:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.btn-finish-exam {
  background: linear-gradient(135deg, #10B981, #059669);
  border: none;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

/* ── Anti-Cheating Warning Modal ── */
.anti-cheat-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(14px);
  animation: fadeIn 0.2s ease;
}

.anti-cheat-card {
  width: 100%;
  max-width: 380px;
  background: #180D0D;
  border: 2px solid #EF4444;
  border-radius: 24px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(239, 68, 68, 0.3);
}

.anti-cheat-icon {
  font-size: 44px;
  margin-bottom: 12px;
  animation: warningBounce 0.8s infinite alternate;
}

@keyframes warningBounce {
  from { transform: scale(1); }
  to { transform: scale(1.15); }
}

.anti-cheat-title {
  font-size: 18px;
  font-weight: 800;
  color: #EF4444;
  margin-bottom: 8px;
}

.anti-cheat-msg {
  font-size: 13px;
  color: #FECACA;
  line-height: 1.5;
  margin-bottom: 20px;
}

.btn-anti-cheat-dismiss {
  width: 100%;
  background: #EF4444;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 14px;
  border: none;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
}

/* ── Daily MCQ Sprint Challenge Styles ── */
.sprint-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sprint-timer-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.sprint-timer-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #F59E0B, #EF4444);
  width: 100%;
  transition: width 1s linear;
}

.sprint-explanation-box {
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 14px;
  padding: 14px;
  margin-top: 14px;
  animation: fadeIn 0.3s ease;
}

.sprint-exp-title {
  font-size: 12px;
  font-weight: 800;
  color: #38BDF8;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sprint-exp-text {
  font-size: 13px;
  line-height: 1.5;
  color: #E2E8F0;
}
