/* ═══════════════════════════════════════════════════════════════
   ARIA NOTEBOOK — APP EXTRA CSS
   Load this LAST in index.html, right before </head>
   ═══════════════════════════════════════════════════════════════ */

/* ── Sidebar: prevent horizontal overflow from admin panel ── */
.sidebar {
  overflow-x: hidden !important;
}
.quiz-section { text-align: left; }
#nav-container {
  overflow-x: hidden;
  width: 100%;
}

/* ── Subtopic number badges ── */
.nav-item {
  display: flex !important;
  align-items: flex-start !important;
  flex-wrap: nowrap !important;
  overflow: hidden !important;
}

.nav-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: rgba(255, 0, 110, 0.6);
  background: rgba(255, 0, 110, 0.07);
  border: 1px solid rgba(255, 0, 110, 0.15);
  border-radius: 4px;
  padding: 0.1rem 0.28rem;
  margin-right: 0.4rem;
  margin-top: 0.1rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.3px;
  flex-shrink: 0;
  min-width: 1.9rem;
  text-align: center;
  line-height: 1.4;
  white-space: nowrap;
}

.nav-item-text {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-unit-exam {
  color: #ffcc00 !important;
  font-weight: 700 !important;
  margin-top: 6px !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  padding-top: 8px !important;
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN SECTION
   High specificity on button rules to override style.css defaults
   ═══════════════════════════════════════════════════════════════ */

.admin-section-wrap {
  padding: 0.75rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 0.75rem;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Lock button — needs !important to override style.css button base */
.sidebar .admin-section-wrap button.admin-lock-btn,
button.admin-lock-btn {
  display: block !important;
  width: 100% !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 7px !important;
  color: rgba(255, 255, 255, 0.25) !important;
  padding: 0.4rem 0.75rem !important;
  cursor: pointer !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  text-align: center !important;
  transition: all 0.2s !important;
  box-shadow: none !important;
  transform: none !important;
}

.sidebar .admin-section-wrap button.admin-lock-btn:hover,
button.admin-lock-btn:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  color: rgba(255, 255, 255, 0.45) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Admin panel container */
.admin-panel {
  font-size: 0.8rem;
  width: 100%;
  overflow: hidden;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.15rem;
  color: #00fff5;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.8px;
}

.admin-subtitle {
  font-size: 0.63rem;
  color: rgba(255, 255, 255, 0.28);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 0.55rem;
}

.admin-selectors {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

/* Small action buttons in admin (All / None / Lock) */
.sidebar .admin-section-wrap button.admin-action-btn,
button.admin-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 5px !important;
  color: rgba(255, 255, 255, 0.45) !important;
  padding: 0.18rem 0.5rem !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  font-family: 'Outfit', sans-serif !important;
  box-shadow: none !important;
  transform: none !important;
  transition: all 0.15s !important;
  width: auto !important;
}

.sidebar .admin-section-wrap button.admin-action-btn:hover,
button.admin-action-btn:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Topics scroll area */
.admin-topics {
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  margin-bottom: 0.6rem;
  width: 100%;
}

.admin-topics::-webkit-scrollbar { width: 3px; }
.admin-topics::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

.admin-unit-label {
  font-size: 0.58rem;
  font-weight: 800;
  color: rgba(255, 0, 110, 0.65);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0.55rem 0 0.2rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid rgba(255, 0, 110, 0.1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-topic-check {
  display: flex;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 0.22rem 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.15s;
  line-height: 1.35;
  width: 100%;
  overflow: hidden;
}

.admin-topic-check:hover { color: #fff; }
.admin-no-q { opacity: 0.28; cursor: default; }

.admin-topic-check input[type="checkbox"] {
  accent-color: #ff006e;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-top: 2px;
  cursor: pointer;
}

.admin-num {
  font-size: 0.56rem;
  color: rgba(255, 0, 110, 0.45);
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
  min-width: 18px;
  line-height: 1.35;
}

.admin-topic-name {
  flex: 1;
  font-size: 0.7rem;
  line-height: 1.35;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-q-count {
  font-size: 0.56rem;
  color: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  margin-left: 0.2rem;
}

/* Label + count inputs */
.admin-label-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
}

.admin-label-row input[type="text"] {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  color: #fff;
  padding: 0.22rem 0.4rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  outline: none;
}

.admin-label-row input[type="text"]:focus {
  border-color: rgba(0, 255, 245, 0.3);
}

.admin-controls {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.5rem;
}

.admin-count-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
}

.admin-count-row input[type="number"] {
  width: 52px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  color: #fff;
  padding: 0.22rem 0.35rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-align: center;
  outline: none;
}

.admin-count-row input[type="number"]:focus {
  border-color: rgba(0, 255, 245, 0.3);
}

.admin-btn-row {
  display: flex;
  gap: 0.4rem;
}

/* Preview + Make Live buttons */
.sidebar .admin-section-wrap button.admin-preview-btn,
button.admin-preview-btn {
  flex: 1 !important;
  font-size: 0.7rem !important;
  padding: 0.4rem 0.3rem !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: rgba(255,255,255,0.7) !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 600 !important;
  text-align: center !important;
  box-shadow: none !important;
  transform: none !important;
}

.sidebar .admin-section-wrap button.admin-preview-btn:hover,
button.admin-preview-btn:hover {
  background: rgba(255,255,255,0.1) !important;
  transform: none !important;
  box-shadow: none !important;
}

.sidebar .admin-section-wrap button.admin-live-btn,
button.admin-live-btn {
  flex: 1 !important;
  font-size: 0.7rem !important;
  padding: 0.4rem 0.3rem !important;
  background: linear-gradient(135deg, #ff006e, #BC244A) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  text-align: center !important;
  box-shadow: none !important;
  transform: none !important;
}

.sidebar .admin-section-wrap button.admin-live-btn:hover,
button.admin-live-btn:hover {
  filter: brightness(1.1) !important;
  transform: none !important;
  box-shadow: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   STUDENT NAME MODAL
   ═══════════════════════════════════════════════════════════════ */

.name-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.name-modal {
  background: rgba(14, 14, 24, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 2rem 2rem 1.75rem;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
  animation: nameModalIn 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes nameModalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.name-modal h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.name-modal p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

#name-modal-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  margin-bottom: 1rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

#name-modal-input:focus {
  border-color: rgba(255, 0, 110, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

#name-modal-input::placeholder { color: rgba(255, 255, 255, 0.25); }

.name-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* Name modal buttons */
.name-modal button.name-skip-btn {
  background: rgba(255,255,255,0.06) !important;
  color: rgba(255,255,255,0.5) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  box-shadow: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   QUIZ REPORT
   ═══════════════════════════════════════════════════════════════ */

.report-header-box {
  text-align: center;
  padding: 1.5rem 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  margin-bottom: 1rem;
}

.report-student-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 0.2rem;
}

.report-quiz-label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.15rem;
}

.report-date {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  margin-bottom: 1rem;
}

.report-name-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

.report-edit-name-btn {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 6px !important;
  color: rgba(255,255,255,0.5) !important;
  padding: 0.2rem 0.6rem !important;
  font-size: 0.75rem !important;
  cursor: pointer !important;
  font-family: 'Outfit', sans-serif !important;
  box-shadow: none !important;
  transform: none !important;
}

.report-edit-name-btn:hover {
  background: rgba(255,255,255,0.09) !important;
  color: rgba(255,255,255,0.8) !important;
  transform: none !important;
  box-shadow: none !important;
}

.report-review-section { margin-bottom: 1.5rem; }

.report-review-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 0.75rem;
}

.report-item {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
}

.report-item.report-correct { border-left-color: #00ff64; }
.report-item.report-wrong   { border-left-color: #ff5050; }

.report-q-num {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.report-correct .report-q-num { color: #00ff64; }
.report-wrong   .report-q-num { color: #ff5050; }

.report-q-text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.5rem;
  line-height: 1.45;
}

.report-q-context {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.4rem;
  font-style: italic;
  line-height: 1.4;
}

.report-answer-row {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.82rem;
  margin-top: 0.2rem;
  line-height: 1.4;
}

.report-label {
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
  min-width: 80px;
}

.report-answer-val { font-weight: 600; }
.ans-correct { color: #00ff64; }
.ans-wrong   { color: #ff5050; }

.results-back-btn {
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  box-shadow: none !important;
}

.results-back-btn:hover {
  background: rgba(255,255,255,0.12) !important;
  transform: none !important;
  box-shadow: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   MAKE LIVE PANEL
   ═══════════════════════════════════════════════════════════════ */

.live-url-panel {
  max-width: 680px;
  margin: 3rem auto;
  text-align: center;
}

.live-url-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  animation: live-pulse 2s ease-in-out infinite;
}

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

.live-url-title { font-size: 1.6rem; font-weight: 700; color: #fff; margin-bottom: 0.3rem; }
.live-url-meta  { font-size: 0.85rem; color: rgba(255,255,255,0.4); margin-bottom: 1.75rem; }

.live-url-box {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(0,255,245,0.25);
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: #00fff5;
  word-break: break-all;
  text-align: left;
  line-height: 1.6;
  margin-bottom: 1.1rem;
  user-select: all;
  cursor: text;
}

.live-url-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.live-copy-btn { min-width: 140px; }

.live-preview-btn {
  min-width: 160px;
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  text-decoration: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
}

.live-url-instructions {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: left;
}

.live-url-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,0,110,0.2);
  border: 1px solid rgba(255,0,110,0.35);
  color: #ff006e;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.live-url-note { font-size: 0.78rem; color: rgba(255,255,255,0.3); line-height: 1.5; text-align: left; }

/* ═══════════════════════════════════════════════════════════════
   EXAM LAUNCH + PREVIEW BANNER
   ═══════════════════════════════════════════════════════════════ */

.exam-launch-screen { max-width: 700px; margin: 0 auto; padding: 2rem 1rem; text-align: center; }
.exam-launch-title  { font-size: 1.75rem; font-weight: 700; color: #fff; text-align: center; margin-bottom: 0.35rem; }
.exam-launch-meta   { font-size: 0.85rem; color: rgba(255,255,255,0.4); text-align: center; margin-bottom: 2rem; }

.exam-preview-banner {
  background: rgba(255,204,0,0.1);
  border: 1px solid rgba(255,204,0,0.3);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  color: #ffcc00;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}
