/* ==========================================================================
   SoftSutra base: reset, variables, header, ad primitives
   Split from index.html lines 9-34. Keep selectors scoped to this file's domain.
   ========================================================================== */

  :root {
    --primary: #0f172a; --primary-dark: #020617; --secondary: #2563eb;
    --accent: #f59e0b; --danger: #dc2626; --success: #16a34a; --purple: #7c3aed;
    --gold: #f59e0b; --silver: #94a3b8; --bronze: #b45309; --diamond: #06b6d4;
    --bg-light: #f8fafc; --border-color: #cbd5e1; --text-main: #0f172a; --text-muted: #64748b;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; }
  
  /* SINGLE SCREEN MOBILE VIEW */
  html, body { height: 100%; height: 100dvh; overflow: hidden; background-color: var(--bg-light); color: var(--text-main); user-select: none; }
  body { display: flex; flex-direction: column; }

  /* HEADER */
  header { background: var(--primary); color: white; padding: 8px 12px; display: flex; justify-content: space-between; align-items: center; z-index: 20; height: 50px; flex-shrink: 0; }
  .brand-box { display: flex; align-items: center; gap: 8px; }
  .brand-logo { background: var(--secondary); color: white; font-weight: 900; padding: 4px 8px; border-radius: 5px; font-size: 13px; letter-spacing: 0.5px; }
  .exam-title-box h1 { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
  
  .header-right { display: flex; align-items: center; gap: 6px; }
  .timer-card { background: #1e293b; color: #38bdf8; padding: 4px 8px; border-radius: 6px; font-weight: 800; font-size: 14px; font-family: monospace; border: 1px solid #334155; }
  .timer-card.danger { color: #f87171; border-color: #f87171; animation: pulse 1s infinite; }
  @keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
  .btn-pal-toggle { display: none; background: #334155; color: white; border: none; padding: 6px 9px; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; }

  /* ADS CONTAINER */
  .ad-slot-banner { background: #ffffff; border: 1px dashed #cbd5e1; border-radius: 6px; padding: 4px 8px; text-align: center; font-size: 11px; font-weight: 600; color: #64748b; margin-bottom: 8px; flex-shrink: 0; }

  /* SHARED BUTTONS (used by dashboard, exam and modals) */
  .btn { padding: 9px 12px; font-size: 12.5px; font-weight: 600; border-radius: 6px; cursor: pointer; border: 1px solid transparent; text-align: center; white-space: nowrap; touch-action: manipulation; }
  .btn:disabled { opacity: 0.45; cursor: not-allowed; }
  .btn-outline { background: #fff; border-color: #cbd5e1; color: #334155; }
  .btn-mark { background: #fef3c7; border-color: #f59e0b; color: #92400e; }
  .btn-skip { background: #fff; border-color: #fca5a5; color: #b91c1c; }
  .btn-save { background: var(--success); color: #fff; }
  .btn-primary { background: var(--secondary); color: #fff; }
  .btn-danger { background: var(--danger); color: #fff; }
  .btn-submit { background: var(--danger); color: #fff; font-weight: 700; width: 100%; padding: 10px; font-size: 13px; border: none; }
  .btn-submit:disabled { background: #94a3b8; cursor: not-allowed; opacity: 0.7; }
