/* ==========================================================================
   TCS iON / NTA CBT Engine Stylesheet (Authentic Institutional Light Mode)
   Isolated strictly to /cbt/ - Zero global leaks
   ========================================================================== */

:root {
  --nta-primary: #337ab7;
  --nta-primary-dark: #23527c;
  --nta-header-bg: #2c3e50;
  --nta-bg-body: #f4f6f9;
  --nta-surface: #ffffff;
  --nta-border: #d1d5db;
  --nta-border-dark: #9ca3af;
  --nta-text-main: #1f2937;
  --nta-text-muted: #6b7280;
  
  /* NTA Status Colors */
  --nta-green: #27ae60;
  --nta-green-hover: #219150;
  --nta-red: #e74c3c;
  --nta-red-hover: #c0392b;
  --nta-purple: #8e44ad;
  --nta-purple-hover: #732d91;
  --nta-grey: #e2e8f0;
  --nta-orange: #e67e22;
  --nta-orange-hover: #d35400;
  --nta-blue: #2980b9;
  --nta-blue-hover: #1f618d;
  --nta-teal: #16a085;
  --nta-teal-hover: #117a65;
}

/* Reset & Box Sizing */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--nta-bg-body);
  color: var(--nta-text-main);
  line-height: 1.5;
  user-select: none;
  -webkit-user-select: none;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   TOP ADMINISTRATIVE HEADER
   -------------------------------------------------------------------------- */
.nta-admin-header {
  background-color: var(--nta-header-bg);
  color: #ffffff;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--nta-primary);
  position: relative;
  z-index: 40;
}

.nta-admin-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nta-admin-logo {
  width: 34px;
  height: 34px;
  background: #ffffff;
  color: var(--nta-header-bg);
  border-radius: 4px;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nta-exam-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nta-exam-sub {
  font-size: 11px;
  color: #bdc3c7;
  font-weight: 400;
}

/* Timer Box */
.nta-timer-box {
  background: #1a252f;
  border: 1px solid #34495e;
  border-radius: 4px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Courier New', Courier, monospace;
}

.nta-timer-label {
  font-size: 11px;
  color: #95a5a6;
  text-transform: uppercase;
}

.nta-timer-val {
  font-size: 18px;
  font-weight: 700;
  color: #2ecc71;
  letter-spacing: 1px;
}

.nta-timer-urgent {
  color: #ff4d4d !important;
  animation: pulse-red 1s infinite;
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* --------------------------------------------------------------------------
   SECTION NAVIGATION TABS
   -------------------------------------------------------------------------- */
.nta-section-bar {
  background: #eef2f7;
  border-bottom: 1px solid var(--nta-border);
  padding: 6px 16px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.nta-section-tabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.nta-tab-btn {
  background: #dfe6ed;
  color: #4b5563;
  border: 1px solid var(--nta-border);
  border-bottom: none;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px 4px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.nta-tab-btn:hover {
  background: #e9eef3;
  color: #111827;
}

.nta-tab-btn.active {
  background: #ffffff;
  color: var(--nta-primary);
  border-top: 3px solid var(--nta-primary);
  font-weight: 700;
  padding-bottom: 9px;
  margin-bottom: -1px;
}

.nta-tab-badge {
  background: #cbd5e1;
  color: #1e293b;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 700;
}

.nta-tab-btn.active .nta-tab-badge {
  background: var(--nta-primary);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   KIOSK LAYOUT (75% Question Canvas / 25% Palette & Profile)
   -------------------------------------------------------------------------- */
.nta-kiosk-wrapper {
  display: flex;
  height: calc(100vh - 105px);
  min-height: 580px;
  background: #ffffff;
}

/* Left 75% Question Canvas */
.nta-question-pane {
  flex: 3;
  display: flex;
  flex-col;
  flex-direction: column;
  border-right: 1px solid var(--nta-border);
  background: #ffffff;
  overflow: hidden;
  height: 100%;
}

/* Sub-header inside Question Pane */
.nta-q-subbar {
  background: #f8fafc;
  border-bottom: 1px solid var(--nta-border);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.nta-marks-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.nta-mark-pos {
  color: var(--nta-green);
  font-weight: 700;
}

.nta-mark-neg {
  color: var(--nta-red);
  font-weight: 700;
}

/* Scrollable Question Body */
.nta-q-canvas {
  flex-grow: 1;
  padding: 24px;
  overflow-y: auto;
  font-size: 15px;
  color: #111827;
  user-select: text;
  -webkit-user-select: text;
}

.nta-q-text {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
  color: #111827;
}

/* Statement & Assertion-Reason Question Typography */
.nta-q-paragraph {
  margin-bottom: 8px;
  line-height: 1.6;
}

.nta-statement-card {
  background: #f8fafc;
  border-left: 3px solid #3b82f6;
  border-radius: 0 4px 4px 0;
  padding: 8px 14px;
  margin: 10px 0;
  font-size: 14.5px;
  line-height: 1.6;
}

.nta-statement-card.nta-assertion {
  border-left-color: #2563eb;
  background: #eff6ff;
}

.nta-statement-card.nta-reason {
  border-left-color: #0284c7;
  background: #f0f9ff;
}

.nta-statement-card.nta-statement {
  border-left-color: #4f46e5;
  background: #f5f3ff;
}

.nta-badge-label {
  font-weight: 700;
  color: #1e3a8a;
  letter-spacing: 0.5px;
  font-size: 12px;
  margin-right: 6px;
  display: inline-block;
}

.nta-statement-text {
  color: #1e293b;
}

.nta-statement-subitem {
  padding-left: 18px;
  margin: 4px 0;
  line-height: 1.55;
  color: #334155;
}

.nta-statement-prompt {
  margin-top: 14px;
  margin-bottom: 8px;
  font-weight: 600;
  color: #475569;
  font-size: 13px;
}

/* Match the Following (List-I / List-II Table) */
.nta-match-table-wrapper {
  margin: 14px 0 16px 0;
  overflow-x: auto;
  max-width: 100%;
}

.nta-match-table {
  width: 100%;
  max-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  font-size: 14px;
}

.nta-match-th {
  background: #f1f5f9;
  color: #1e293b;
  font-weight: 700;
  font-size: 13.5px;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid #cbd5e1;
  width: 50%;
}

.nta-match-th.nta-match-left-th {
  border-right: 1px solid #cbd5e1;
  color: #1e3a8a;
}

.nta-match-th.nta-match-right-th {
  color: #0369a1;
}

.nta-match-td {
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
  line-height: 1.5;
  color: #1e293b;
}

.nta-match-table tbody tr:last-child .nta-match-td {
  border-bottom: none;
}

.nta-match-table tbody tr:hover {
  background-color: #f8fafc;
}

.nta-match-left-td {
  border-right: 1px solid #e2e8f0;
  background-color: #fafbfd;
}

.nta-match-marker {
  font-weight: 700;
  margin-right: 6px;
  display: inline-block;
  min-width: 18px;
}

.nta-match-left-td .nta-match-marker {
  color: #1e3a8a;
}

.nta-match-right-td .nta-match-marker {
  color: #0284c7;
}

.nta-match-val {
  display: inline;
}

.nta-match-intro {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}

.nta-match-prompt {
  margin-top: 12px;
}

/* MCQ Options */
.nta-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nta-option-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.15s ease;
}

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

.nta-option-item.selected {
  background: #eef6fc;
  border-color: var(--nta-primary);
}

.nta-option-item input[type="radio"] {
  margin-top: 4px;
  cursor: pointer;
  accent-color: var(--nta-primary);
  width: 16px;
  height: 16px;
}

.nta-option-content {
  flex-grow: 1;
  font-size: 14px;
}

.nta-q-paper-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 6px 0;
  border-radius: 4px;
}

.nta-opt-paper-img {
  max-height: 48px;
  max-width: 100%;
  vertical-align: middle;
  display: inline-block;
}

/* Section B: Numerical Input & Virtual Keypad */
.nta-nvt-container {
  margin-top: 16px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--nta-border);
  border-radius: 4px;
  max-width: 480px;
}

.nta-nvt-label {
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.nta-nvt-input {
  width: 100%;
  font-size: 18px;
  font-weight: 700;
  padding: 10px 14px;
  border: 2px solid var(--nta-primary);
  border-radius: 4px;
  background: #ffffff;
  color: #111827;
  font-family: 'Courier New', Courier, monospace;
  margin-bottom: 14px;
  text-align: right;
  letter-spacing: 1px;
}

/* Virtual Keypad Grid */
.nta-keypad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.nta-key-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 12px 6px;
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: all 0.1s ease;
}

.nta-key-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.nta-key-btn:active {
  background: #e2e8f0;
  transform: translateY(1px);
}

.nta-key-btn.action-key {
  background: #e2e8f0;
  font-size: 12px;
  color: #334155;
}

/* Action Footer (Left Side) */
.nta-q-footer {
  background: #eef2f7;
  border-top: 1px solid var(--nta-border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.nta-action-group-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Action Buttons */
.nta-btn {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.nta-btn:active {
  transform: translateY(1px);
}

.nta-btn-save-next {
  background: var(--nta-green);
  color: #ffffff;
}
.nta-btn-save-next:hover {
  background: var(--nta-green-hover);
}

.nta-btn-save-mark {
  background: var(--nta-orange);
  color: #ffffff;
}
.nta-btn-save-mark:hover {
  background: var(--nta-orange-hover);
}

.nta-btn-clear {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #374151;
}
.nta-btn-clear:hover {
  background: #f8fafc;
  color: #111827;
}

.nta-btn-mark-next {
  background: var(--nta-blue);
  color: #ffffff;
}
.nta-btn-mark-next:hover {
  background: var(--nta-blue-hover);
}

.nta-btn-submit {
  background: var(--nta-teal);
  color: #ffffff;
  padding: 9px 20px;
  font-size: 13px;
}
.nta-btn-submit:hover {
  background: var(--nta-teal-hover);
}

/* --------------------------------------------------------------------------
   RIGHT 25% PROFILE & QUESTION PALETTE
   -------------------------------------------------------------------------- */
.nta-palette-pane {
  flex: 1;
  min-width: 280px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  background: #fdfdfd;
  border-left: 1px solid var(--nta-border);
  height: 100%;
  overflow: hidden;
}

/* Candidate Card */
.nta-candidate-box {
  padding: 12px 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--nta-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.nta-candidate-photo {
  width: 44px;
  height: 52px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  object-fit: cover;
  flex-shrink: 0;
}

.nta-candidate-meta {
  font-size: 11px;
  line-height: 1.4;
  overflow: hidden;
}

.nta-candidate-name {
  font-weight: 700;
  font-size: 13px;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nta-candidate-roll {
  color: #4b5563;
  font-family: monospace;
}

/* 5-State Legend Counters */
.nta-legend-container {
  padding: 10px 14px;
  background: #ffffff;
  border-bottom: 1px solid var(--nta-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 11px;
}

.nta-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #374151;
}

.nta-legend-count {
  font-weight: 700;
  font-size: 12px;
  min-width: 20px;
  text-align: right;
}

/* Shape Mini Indicators for Legend */
.shape-sample {
  width: 22px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #ffffff;
  font-weight: 700;
  flex-shrink: 0;
}

.shape-sample.answered {
  background: var(--nta-green);
  clip-path: polygon(50% 0%, 100% 28%, 100% 100%, 0% 100%, 0% 28%);
}
.shape-sample.not-answered {
  background: var(--nta-red);
  clip-path: polygon(0% 0%, 100% 0%, 100% 72%, 50% 100%, 0% 72%);
}
.shape-sample.not-visited {
  background: #e2e8f0;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
}
.shape-sample.marked {
  background: var(--nta-purple);
  border-radius: 50%;
  width: 20px;
  height: 20px;
}
.shape-sample.answered-marked {
  background: var(--nta-purple);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  position: relative;
}
.shape-sample.answered-marked::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 6px;
  height: 6px;
  background: #2ecc71;
  border-radius: 50%;
  border: 1px solid #ffffff;
}

/* Palette Grid Header */
.nta-palette-header {
  background: #eef2f7;
  padding: 6px 14px;
  border-bottom: 1px solid var(--nta-border);
  font-size: 11px;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
}

/* Scrollable Question Grid */
.nta-palette-grid {
  flex-grow: 1;
  padding: 12px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  align-content: flex-start;
}

/* Palette Question Button (NTA Shape Styles) */
.nta-qbtn {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: transparent;
  color: #ffffff;
  position: relative;
  transition: transform 0.1s ease;
}

.nta-qbtn:hover {
  transform: scale(1.08);
}

.nta-qbtn.active-q {
  outline: 2px solid #000000;
  outline-offset: 1px;
}

/* 1. Answered (Green Pentagon) */
.nta-qbtn.status-answered {
  background: var(--nta-green);
  clip-path: polygon(50% 0%, 100% 28%, 100% 100%, 0% 100%, 0% 28%);
}

/* 2. Not Answered (Red Inverted Pentagon) */
.nta-qbtn.status-not-answered {
  background: var(--nta-red);
  clip-path: polygon(0% 0%, 100% 0%, 100% 72%, 50% 100%, 0% 72%);
}

/* 3. Not Visited (Grey Square) */
.nta-qbtn.status-not-visited {
  background: #e2e8f0;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
}

/* 4. Marked for Review (Purple Circle) */
.nta-qbtn.status-marked {
  background: var(--nta-purple);
  border-radius: 50%;
  width: 34px;
  margin: 0 auto;
}

/* 5. Answered & Marked for Review */
.nta-qbtn.status-answered-marked {
  background: var(--nta-purple);
  border-radius: 50%;
  width: 34px;
  margin: 0 auto;
}
.nta-qbtn.status-answered-marked::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 9px;
  height: 9px;
  background: #2ecc71;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
}

/* --------------------------------------------------------------------------
   MODAL DIALOG (NTA Summary Confirmation)
   -------------------------------------------------------------------------- */
.nta-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}

.nta-modal-card {
  background: #ffffff;
  border-radius: 4px;
  max-width: 680px;
  width: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border-top: 4px solid var(--nta-primary);
  overflow: hidden;
  animation: modal-pop 0.2s ease-out;
}

@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.nta-modal-head {
  padding: 12px 18px;
  background: #f8fafc;
  border-bottom: 1px solid var(--nta-border);
  font-size: 15px;
  font-weight: 700;
  color: var(--nta-header-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nta-modal-body {
  padding: 20px;
  font-size: 13px;
  color: #374151;
}

.nta-summary-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 12px;
}

.nta-summary-table th, .nta-summary-table td {
  border: 1px solid #cbd5e1;
  padding: 8px 10px;
  text-align: center;
}

.nta-summary-table th {
  background: #eef2f7;
  color: #1e293b;
  font-weight: 700;
}

.nta-modal-foot {
  padding: 12px 18px;
  background: #f8fafc;
  border-top: 1px solid var(--nta-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   IN-KIOSK RESULTS & SOLUTION VIEW
   -------------------------------------------------------------------------- */
.nta-results-screen {
  max-width: 1100px;
  margin: 20px auto;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--nta-border);
  border-radius: 4px;
}

.nta-score-card-banner {
  background: #f8fafc;
  border: 1px solid var(--nta-border);
  border-top: 4px solid var(--nta-green);
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.nta-big-score {
  font-size: 36px;
  font-weight: 800;
  color: var(--nta-green);
  line-height: 1;
}

/* --------------------------------------------------------------------------
   RESPONSIVE PALETTE DRAWER (MOBILE / TABLET)
   -------------------------------------------------------------------------- */
.nta-palette-toggle-btn {
  display: none;
}

@media (max-width: 1024px) {
  .nta-palette-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1a252f;
    color: #ffffff;
    border: 1px solid #34495e;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
  }

  .nta-palette-pane {
    position: fixed;
    right: -340px;
    top: 56px;
    bottom: 0;
    z-index: 60;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.25);
    transition: right 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nta-palette-pane.open {
    right: 0;
  }
}

/* --------------------------------------------------------------------------
   FRONT-PAGE SIMPLE TEST LEDGER (NTA PORTAL)
   -------------------------------------------------------------------------- */
.nta-portal-container {
  max-width: 1040px;
  margin: 30px auto;
  padding: 0 16px;
}

.nta-ledger-card {
  background: #ffffff;
  border: 1px solid var(--nta-border);
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  overflow: hidden;
}

.nta-ledger-head {
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 2px solid var(--nta-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.nta-ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.nta-ledger-table th {
  background: #eef2f7;
  color: #1e293b;
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--nta-border);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nta-ledger-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

.nta-ledger-table tr:hover td {
  background: #fbfcfe;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.status-pill-live {
  background: #eafaf1;
  color: #27ae60;
  border: 1px solid #a3e4d7;
}

.status-pill-live::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #27ae60;
  border-radius: 50%;
  animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.status-pill-scheduled {
  background: #fef9e7;
  color: #d4ac0d;
  border: 1px solid #f9e79f;
}

/* --------------------------------------------------------------------------
   ADMIN DASHBOARD VIEW & MODALS
   -------------------------------------------------------------------------- */
.nta-admin-view {
  max-width: 1150px;
  margin: 30px auto;
  padding: 0 16px;
}

.nta-admin-box {
  background: #ffffff;
  border: 1px solid var(--nta-border);
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border-top: 4px solid var(--nta-primary);
  padding: 24px;
}

.nta-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 16px;
}

.nta-admin-table th, .nta-admin-table td {
  border: 1px solid #cbd5e1;
  padding: 8px 12px;
  text-align: left;
}

.nta-admin-table th {
  background: #f1f5f9;
  font-weight: 700;
  color: #1e293b;
}

/* --------------------------------------------------------------------------
   CANDIDATE ONBOARDING & PERSISTENT IDENTITY CARD
   -------------------------------------------------------------------------- */
.nta-candidate-card {
  background: #ffffff;
  border: 1px solid var(--nta-border);
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border-left: 4px solid var(--nta-primary);
}

.nta-candidate-info-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nta-candidate-avatar {
  width: 44px;
  height: 44px;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #475569;
  flex-shrink: 0;
}

.nta-name-clickable {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  border-bottom: 1px dashed #337ab7;
  padding-bottom: 1px;
  transition: color 0.15s ease;
}

.nta-name-clickable:hover {
  color: #23527c;
  background: #f0f7ff;
}

.nta-btn-edit-badge {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #337ab7;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  margin-left: 8px;
  transition: all 0.15s ease;
}

.nta-btn-edit-badge:hover {
  background: #337ab7;
  color: #ffffff;
  border-color: #337ab7;
}

.nta-name-input {
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  border: 1px solid #337ab7;
  border-radius: 3px;
  outline: none;
  min-width: 220px;
}

.nta-name-input:focus {
  box-shadow: 0 0 0 2px rgba(51, 122, 183, 0.2);
}

.nta-btn-save-badge {
  background: #27ae60;
  border: 1px solid #219150;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 3px;
  cursor: pointer;
  margin-left: 6px;
}

.nta-btn-save-badge:hover {
  background: #219150;
}

.nta-btn-cancel-badge {
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 3px;
  cursor: pointer;
  margin-left: 4px;
}

.nta-btn-cancel-badge:hover {
  background: #cbd5e1;
}

/* --------------------------------------------------------------------------
   OFFICIAL A4 NTA SCORECARD PRINT STYLESHEET
   -------------------------------------------------------------------------- */
@media print {
  @page {
    size: A4 portrait;
    margin: 10mm;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 12pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Hide web chrome */
  header, footer, .nta-admin-header, .no-print,
  #screen-instructions, #screen-countdown, #screen-kiosk,
  #nta-submit-modal, .nta-q-footer, button, .nta-btn,
  #res-solutions-container, .nta-section-bar, #screen-portal-lobby,
  #screen-admin-dashboard {
    display: none !important;
  }

  #screen-results {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
  }

  .nta-results-screen {
    border: 2px solid #000000 !important;
    padding: 16px !important;
    margin: 0 !important;
    max-width: 100% !important;
    box-shadow: none !important;
  }

  /* Printable Official NTA Header Banner */
  .nta-score-card-banner {
    border: 2px solid #000000 !important;
    background: #ffffff !important;
    border-top: 6px solid #000000 !important;
    padding: 14px !important;
    margin-bottom: 14px !important;
  }

  .nta-big-score {
    color: #000000 !important;
    font-size: 32pt !important;
  }

  /* Scorecard Document Seal */
  .nta-print-seal {
    display: block !important;
    text-align: right;
    font-size: 9pt;
    font-family: monospace;
    border-top: 1px dashed #666666;
    padding-top: 8px;
    margin-top: 20px;
  }
}

.nta-print-seal {
  display: none;
}

/* ========================================================================== */
/* PROCTORING INTEGRITY SUITE & LIVE SURVEILLANCE STYLES                      */
/* ========================================================================== */

/* Live Proctoring Badge in Kiosk Header */
.nta-proctor-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #38ef7d;
  font-size: 11px;
  font-weight: 700;
  font-family: monospace;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
  user-select: none;
}

.nta-proctor-live-badge.alert {
  background: #7f1d1d !important;
  border-color: #ef4444 !important;
  color: #fee2e2 !important;
  animation: nta-pulse-proctor 1.2s infinite;
}

.nta-proctor-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38ef7d;
  display: inline-block;
  box-shadow: 0 0 6px #38ef7d;
}

.nta-proctor-live-badge.alert .nta-proctor-live-dot {
  background: #ef4444 !important;
  box-shadow: 0 0 8px #ef4444 !important;
}

@keyframes nta-pulse-proctor {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  50% { transform: scale(1.02); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Fullscreen High-Contrast Proctoring Warning Modal */
.nta-proctor-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.nta-proctor-modal {
  background: #ffffff;
  border-radius: 6px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  border: 2px solid #dc2626;
  overflow: hidden;
  animation: nta-modal-pop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes nta-modal-pop {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.nta-proctor-head {
  background: #dc2626;
  color: #ffffff;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nta-proctor-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nta-proctor-count-badge {
  background: #ffffff;
  color: #dc2626;
  font-size: 11px;
  font-weight: 800;
  font-family: monospace;
  padding: 2px 8px;
  border-radius: 3px;
}

.nta-proctor-body {
  padding: 20px 22px;
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
}

.nta-proctor-alert-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 11px;
  color: #991b1b;
  margin-top: 14px;
  line-height: 1.5;
}

.nta-proctor-foot {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 12px 20px;
  text-align: right;
}

/* ========================================================================== */
/* PERCENTILE & CRL RANK PREDICTOR CARD STYLES                               */
/* ========================================================================== */

.nta-percentile-card {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nta-percentile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.nta-percentile-title {
  font-size: 13px;
  font-weight: 800;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nta-percentile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.nta-percentile-stat {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 14px;
  text-align: center;
}

.nta-percentile-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.nta-percentile-val {
  font-size: 24px;
  font-weight: 800;
  color: #27ae60;
  font-family: monospace;
}

.nta-rank-range-val {
  font-size: 22px;
  font-weight: 800;
  color: #337ab7;
  font-family: monospace;
}

/* ========================================================================== */
/* TOP 5 SCORERS LEADERBOARD STYLES                                           */
/* ========================================================================== */

.nta-leaderboard-card {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nta-leaderboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.nta-leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.nta-leaderboard-table th {
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 2px solid #cbd5e1;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nta-leaderboard-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
}

.nta-leaderboard-table tr:hover {
  background: #f8fafc;
}

.nta-leaderboard-row-self {
  background: #ecfdf5 !important;
  border-left: 4px solid #10b981;
}

.nta-leaderboard-row-self td {
  font-weight: 600;
}

.nta-rank-medal {
  font-size: 15px;
  margin-right: 4px;
}

.nta-audit-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
  margin-top: 6px;
}

.nta-audit-clean {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.nta-audit-flagged {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

/* ========================================================================== */
/* ADMIN AUTHENTICATION GATEWAY STYLES                                        */
/* ========================================================================== */

.nta-admin-auth-card {
  max-width: 480px;
  margin: 50px auto;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-top: 4px solid #dc2626;
  border-radius: 6px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  animation: nta-modal-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nta-admin-auth-head {
  padding: 24px 24px 16px;
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
}

.nta-admin-auth-body {
  padding: 24px;
}

.nta-admin-pass-field {
  width: 100%;
  padding: 10px 42px 10px 14px;
  font-size: 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nta-admin-pass-field:focus {
  border-color: #337ab7;
  box-shadow: 0 0 0 3px rgba(51, 122, 183, 0.15);
}

.nta-btn-toggle-pass {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  color: #64748b;
  opacity: 0.7;
}

.nta-btn-toggle-pass:hover {
  opacity: 1;
}

.nta-admin-auth-err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
  animation: nta-shake 0.35s ease;
}

@keyframes nta-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* Syllabus Preview Action Button */
.nta-btn-syllabus-preview {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #337ab7;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  font-family: inherit;
}

.nta-btn-syllabus-preview:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #1e3a8a;
  transform: translateY(-1px);
}

.nta-btn-syllabus-preview:active {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   EXAM LOBBY TAB NAVIGATION & SCHEDULE BADGE STYLES
   -------------------------------------------------------------------------- */
.nta-lobby-nav-tabs {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: -1px;
  position: relative;
  z-index: 10;
  border-bottom: 2px solid #cbd5e1;
  padding-bottom: 0;
}

.nta-lobby-tab-btn {
  background: #e2e8f0;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-bottom: none;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  font-family: inherit;
  user-select: none;
}

.nta-lobby-tab-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.nta-lobby-tab-btn.active {
  background: #ffffff;
  color: var(--nta-primary);
  border-top: 3px solid var(--nta-primary);
  border-left-color: #cbd5e1;
  border-right-color: #cbd5e1;
  font-weight: 800;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.04);
}

.badge-phase-1 {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.badge-phase-2 {
  background: #ecfeff;
  color: #0e7490;
  border: 1px solid #a5f3fc;
}

.badge-phase-3 {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}


