/* CBSE Sample Question Paper — board-style exam UI */
.exam-paper-page {
  background: #f4f1ea;
  color: #1a1a1a;
  min-height: 100vh;
}

.exam-paper-page .mock-exam-header {
  background: #fff;
  border-bottom: 2px solid #1a1a1a;
  color: #1a1a1a;
}

.exam-paper-page .back-link {
  color: #334155;
}

.exam-paper-page .mock-clock {
  color: #b91c1c;
  font-weight: 700;
}

.exam-paper-sheet {
  max-width: 820px;
  margin: 0 auto 48px;
  background: #fff;
  border: 2px solid #1a1a1a;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  padding: 28px 32px 40px;
}

.exam-board-header {
  text-align: center;
  border-bottom: 2px double #1a1a1a;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.exam-board-header .board-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.exam-board-header .paper-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 8px 0 4px;
}

.exam-board-header .paper-meta {
  font-size: 0.85rem;
  color: #444;
  line-height: 1.6;
}

.exam-marks-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  font-size: 0.82rem;
  margin: 16px 0;
  padding: 12px 16px;
  border: 1px solid #333;
}

.exam-general-instructions {
  font-size: 0.8rem;
  line-height: 1.55;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: #fafafa;
  border-left: 4px solid #1a1a1a;
}

.exam-general-instructions ol {
  margin: 8px 0 0 18px;
  padding: 0;
}

.exam-section-head {
  margin: 28px 0 12px;
  padding: 8px 12px;
  background: #eef2ff;
  border: 1px solid #94a3b8;
  font-weight: 700;
  font-size: 0.95rem;
}

.exam-section-head small {
  display: block;
  font-weight: 500;
  color: #475569;
  margin-top: 4px;
}

.exam-paper-page .mock-q-block {
  border-bottom: 1px dotted #cbd5e1;
  padding: 14px 0;
  color: #1a1a1a;
}

.exam-paper-page .mock-q-num {
  font-weight: 600;
  font-size: 0.92rem;
  color: #1a1a1a;
}

.exam-paper-page .mock-q-marks {
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  margin-left: 6px;
}

.exam-paper-page .mock-q-prompt {
  margin: 10px 0;
  line-height: 1.6;
  font-size: 0.95rem;
  color: #1a1a1a;
}

.exam-paper-page .mock-q-opts {
  color: #1a1a1a;
}

.exam-paper-page .verified-tag {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.exam-paper-page .approved-tag {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #7dd3fc;
}

.exam-paper-page .mock-opt {
  display: block;
  margin: 6px 0;
  padding: 6px 8px;
  cursor: pointer;
  color: #1a1a1a;
}

.exam-paper-page .mock-opt:hover {
  background: #f1f5f9;
}

/* Exam Center hub */
.exam-center-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.exam-center-card {
  background: var(--portal-surface, #121a16);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

.exam-center-card:hover {
  border-color: rgba(110, 231, 168, 0.45);
  transform: translateY(-2px);
}

.exam-center-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.exam-center-card p {
  margin: 0;
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.5;
}

.exam-center-card .ec-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.cbse-tab.dormant {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(0.6);
}

.cbse-tab.dormant::after {
  content: ' (NCERT pending)';
  font-size: 0.65rem;
  font-weight: 500;
}

/* Chapter practice — answer sheet & evaluation */
.practice-results-header {
  margin-bottom: 20px;
}

.practice-results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.practice-answer-sheet {
  margin-top: 8px;
}

.practice-sheet-q {
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 0;
}

.practice-sheet-q:last-child {
  border-bottom: none;
}

.practice-sheet-answer {
  margin-top: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border-left: 3px solid #0d9488;
  font-size: 0.9rem;
  color: #1a1a1a;
}

.practice-sheet-answer strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 6px;
}

.practice-sheet-answer-body {
  white-space: pre-wrap;
  line-height: 1.55;
}

.practice-answer-img {
  display: block;
  max-width: 100%;
  max-height: 200px;
  margin-top: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

.practice-sheet-grade {
  margin-top: 10px;
  padding: 8px 12px;
  background: #ecfdf5;
  border-radius: 8px;
  font-size: 0.88rem;
  color: #065f46;
}

.practice-score strong {
  color: #047857;
}

.practice-pending {
  color: #92400e;
  background: #fffbeb;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
}

.practice-sheet-ref {
  margin-top: 12px;
  padding: 12px 14px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
}

.practice-ref-label {
  font-weight: 700;
  font-size: 0.82rem;
  color: #0369a1;
  margin: 0 0 6px;
}

.practice-ref-body {
  white-space: pre-wrap;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #1e293b;
}

.practice-ai-disclaimer {
  font-size: 0.75rem;
  color: #b45309;
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
  padding: 8px 10px;
  margin: 8px 0;
  line-height: 1.45;
}

.practice-eval-results {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(110, 231, 183, 0.35);
  background: rgba(15, 23, 42, 0.6);
  color: #d1fae5;
  font-size: 0.88rem;
}

.practice-eval-results.hidden {
  display: none;
}

.practice-results-title {
  margin: 0 0 10px;
  font-size: 1rem;
}

.practice-teacher-note {
  margin-top: 10px;
  font-size: 0.85rem;
}

.practice-teacher-note a {
  color: #6ee7b7;
}

.practice-eval-loading {
  color: #94a3b8;
}

.practice-eval-modal {
  border: none;
  border-radius: 16px;
  padding: 22px 24px;
  background: #1e293b;
  color: #f1f5f9;
  max-width: 440px;
}

.practice-eval-modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.practice-eval-choices label {
  display: block;
  margin: 10px 0;
  font-size: 0.84rem;
  line-height: 1.4;
}

.practice-eval-hint {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 12px 0 0;
  line-height: 1.45;
}

.practice-results-fallback {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.5);
}
