/* ==========================================================================
   test-generator.css
   Supplemental styles for test-generator.html, pdf-to-test.html, and
   translation-series.html. Loaded after style.css + assets/ai-ui.css,
   which already define .card, .btn, .field, .brand, .step-*, .ai-btn,
   .ai-chip, .progress-*, .format-fields, .download-row, etc.
   Only classes NOT covered by those two files live here.
   ========================================================================== */

/* ---- step-card ----------------------------------------------------------- */
/* A card variant that acts as a numbered wizard step. */
.step-card {
  margin-bottom: 1.5rem;
}

/* ---- brand-live-mini ----------------------------------------------------- */
/* Tiny "Mul Vidya AI" tagline sitting below the logo in the topbar. */
.brand-live-mini {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent, #6c63ff);
  opacity: 0.85;
  margin-top: 1px;
  line-height: 1;
}

/* ---- format-help --------------------------------------------------------- */
/* <details> accordion holding the paste-box format guide. */
.format-help {
  margin-top: 0.75rem;
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  color: var(--ink-muted, #666);
  background: var(--surface-alt, #fafafa);
}
.format-help summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink, #1a1a2e);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.format-help summary::-webkit-details-marker { display: none; }
.format-help summary::before {
  content: '▸';
  font-size: 0.7rem;
  transition: transform 0.2s;
}
.format-help[open] summary::before { transform: rotate(90deg); }
.format-help pre, .format-help code {
  font-size: 0.78rem;
  background: var(--surface, #f0f0f6);
  border-radius: 4px;
  padding: 2px 5px;
}
.format-help pre {
  padding: 0.6rem 0.8rem;
  overflow-x: auto;
  white-space: pre;
  margin: 0.5rem 0;
}

/* ---- section-preview ----------------------------------------------------- */
/* Live preview strip showing detected sections / items before generation. */
.section-preview {
  min-height: 2rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: var(--surface-alt, #fafafa);
  border: 1px dashed var(--border, #d0d0e0);
  font-size: 0.82rem;
  color: var(--ink-muted, #666);
  margin-top: 0.5rem;
}
.section-preview:empty::before {
  content: 'Detected sections will appear here…';
  opacity: 0.5;
}

/* ---- upload-drop / updrop-* ---------------------------------------------- */
/* Drag-and-drop PDF upload zone used in pdf-to-test.html. */
.upload-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 2.5rem 1.5rem;
  border: 2px dashed var(--border, #c0c0d8);
  border-radius: 12px;
  background: var(--surface-alt, #f7f7fd);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.upload-drop:hover,
.upload-drop.drag-over {
  border-color: var(--accent, #6c63ff);
  background: var(--accent-bg, #f0eeff);
}
.upload-drop input[type="file"] {
  display: none;
}
.updrop-icon {
  width: 40px;
  height: 40px;
  color: var(--accent, #6c63ff);
  opacity: 0.75;
}
.updrop-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink, #1a1a2e);
}
.updrop-sub {
  font-size: 0.78rem;
  color: var(--ink-muted, #888);
  margin: 0;
}

/* ---- review-list / ri-empty ---------------------------------------------- */
/* Container for AI-generated question review cards in pdf-to-test.html. */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 3rem;
}
.ri-empty {
  font-size: 0.85rem;
  color: var(--ink-muted, #888);
  text-align: center;
  padding: 1.5rem 1rem;
}

/* ---- ai-mode-row / ai-badge ---------------------------------------------- */
/* "Use AI" toggle row with badge chip in pdf-to-test.html. */
.ai-mode-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 0.75rem;
  background: var(--accent-bg, #f0eeff);
  border-radius: 8px;
  margin-bottom: 0.6rem;
}
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--accent, #6c63ff);
  border-radius: 20px;
  padding: 3px 9px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ai-badge svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}
.ai-note {
  font-size: 0.8rem;
  color: var(--ink-muted, #666);
  margin: 0.25rem 0 0;
}

/* ---- gen-controls -------------------------------------------------------- */
/* Grid of number inputs for question-count controls in pdf-to-test.html. */
.gen-controls {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 0.5rem;
}

/* ---- checkbox-field ------------------------------------------------------ */
/* A .field variant for checkbox+label pairs. */
.checkbox-field {
  display: flex;
  align-items: center;
}
.checkbox-field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  font-weight: 500;
}
.checkbox-field input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--accent, #6c63ff);
  cursor: pointer;
}

/* ---- btn-row ------------------------------------------------------------- */
/* A horizontal row of buttons (flex gap). */
.btn-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

/* ---- tr-group / tr-badge ------------------------------------------------- */
/* Section grouping wrappers in translation-series.html. */
.tr-group {
  margin-bottom: 1.5rem;
}
.tr-group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--ink, #1a1a2e);
}
.tr-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent, #6c63ff);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- bn-text ------------------------------------------------------------- */
/* Bengali / Devanagari text display override. */
.bn-text {
  font-family: 'Noto Sans Bengali', 'Noto Sans Devanagari', sans-serif;
  font-size: 1.05em;
  line-height: 1.7;
}
