/* ==========================================================================
   Apply Portal • Setup-Wizard UI Skin
   - Day mode default (html[data-theme="light"])
   - Dark mode optional (html[data-theme="dark"])
   - Overrides admission-wow.css to match setup-wizard.html style
   ========================================================================== */

/* ---------- Theme tokens ---------- */
html[data-theme="light"], html:not([data-theme]) {
  --page: #f4f6fb;
  --panel: #ffffff;
  --panel2: #fbfcff;
  --text: #0f172a;
  --muted: #475569;
  --muted2: #64748b;
  --line: rgba(15, 23, 42, 0.10);
  --line2: rgba(15, 23, 42, 0.14);
  --shadow: 0 18px 55px rgba(2, 6, 23, 0.10);
  --shadow2: 0 10px 30px rgba(2, 6, 23, 0.08);
  --accent: #16a34a;
  --accentSoft: rgba(22, 163, 74, 0.10);
  --accentLine: rgba(22, 163, 74, 0.28);

  --input-bg: #ffffff;
  --input-border: rgba(15, 23, 42, 0.16);
  --input-focus: rgba(22, 163, 74, 0.35);
  --btnText: #ffffff;
}

html[data-theme="dark"] {
  --page: #070b12;
  --panel: rgba(15, 18, 28, 0.92);
  --panel2: rgba(9, 11, 18, 0.92);
  --text: #eef2ff;
  --muted: rgba(238, 242, 255, 0.70);
  --muted2: rgba(238, 242, 255, 0.62);
  --line: rgba(255, 255, 255, 0.10);
  --line2: rgba(255, 255, 255, 0.14);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  --shadow2: 0 10px 30px rgba(0, 0, 0, 0.40);
  --accent: #22c55e;
  --accentSoft: rgba(34, 197, 94, 0.12);
  --accentLine: rgba(34, 197, 94, 0.30);

  --input-bg: rgba(255, 255, 255, 0.06);
  --input-border: rgba(255, 255, 255, 0.16);
  --input-focus: rgba(34, 197, 94, 0.35);
  --btnText: #06120b;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(22, 163, 74, 0.10), transparent 55%),
    radial-gradient(1200px 600px at 85% 10%, rgba(59, 130, 246, 0.10), transparent 60%),
    var(--page);
}

/* Kill the washed-out look */
input, select, textarea {
  color: var(--text) !important;
}

/* ---------- Layout: match setup wizard ---------- */
.wow-container { max-width: none; }
.wow-top { 
  max-width: 1360px;
  margin: 0 auto;
  padding: 18px 22px 0;
  background: transparent !important;
}
.wow-top .wow-top-inner {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  box-shadow: var(--shadow2);
  padding: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.wow-top .wow-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wow-top .wow-brand img,
.wow-top [data-school-logo] {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  object-fit: contain;
}
.wow-top .wow-brand strong,
.wow-top [data-school-name] {
  font-size: 12px !important;
  letter-spacing: 0.18em;
  font-weight: 1000 !important;
  text-transform: uppercase;
  color: var(--text) !important;
}
.wow-top .wow-actions { display:flex; gap:10px; align-items:center; }

.wow-shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 16px 22px 26px;
  display: grid;
  grid-template-columns: 320px minmax(760px, 1fr);
  gap: 22px;
  align-items: start;
}

/* Sidebar */
.wow-rail {
  position: sticky;
  top: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  box-shadow: var(--shadow2);
  overflow: hidden;
}
.wow-stepper { padding: 12px; display:flex; flex-direction:column; gap:8px; }
.wow-step {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.9);
  color: var(--text);
  font-weight: 950;
  font-size: 12px;
}
html[data-theme="dark"] .wow-step { background: rgba(255,255,255,0.04); }
.wow-step .wow-step-num {
  width: 26px; height:26px; border-radius:999px;
  display:inline-flex; align-items:center; justify-content:center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.95);
  font-weight:1000;
}
html[data-theme="dark"] .wow-step .wow-step-num { background: rgba(255,255,255,0.06); }
.wow-step.wow-step-active { border-color: var(--accentLine); background: var(--accentSoft); }
.wow-step.wow-step-active .wow-step-num { border-color: var(--accentLine); color: #14532d; }
.wow-step.wow-step-done { background: rgba(2, 6, 23, 0.03); }
html[data-theme="dark"] .wow-step.wow-step-done { background: rgba(255,255,255,0.03); }
.wow-step.wow-step-done .wow-step-num { background: var(--accentSoft); border-color: var(--accentLine); color: #14532d; }

/* Sidebar helper boxes */
.wow-rail .wow-box, .wow-rail .wow-aside-card {
  margin: 0 12px 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.95);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
html[data-theme="dark"] .wow-rail .wow-box,
html[data-theme="dark"] .wow-rail .wow-aside-card { background: rgba(255,255,255,0.04); }

/* Main card */
.wow-card {
  border: 1px solid var(--line) !important;
  border-radius: 18px !important;
  background: var(--panel) !important;
  box-shadow: var(--shadow) !important;
  padding: 18px !important;
}

/* Section headings */
.wow-card h2, .wow-card h3 {
  margin: 0 0 8px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.wow-card .wow-muted, .wow-card p, .wow-card .sub {
  color: var(--muted2) !important;
  font-weight: 700;
}

/* Inputs */
.wow-input, .wow-select, .wow-textarea, .wow-card input, .wow-card select, .wow-card textarea {
  width: 100%;
  background: var(--input-bg) !important;
  border: 1px solid var(--input-border) !important;
  border-radius: 12px !important;
  padding: 12px 12px !important;
  font-weight: 850 !important;
  color: var(--text) !important;
}
.wow-card input:focus, .wow-card select:focus, .wow-card textarea:focus {
  outline: none;
  border-color: var(--accentLine) !important;
  box-shadow: 0 0 0 3px var(--input-focus) !important;
}

/* Buttons */
.wow-btn, .wow-card button {
  border-radius: 12px !important;
  font-weight: 1000 !important;
  letter-spacing: 0.02em;
}
.wow-btn-primary, .wow-btn.primary {
  background: linear-gradient(90deg, var(--accent), #0ea5e9) !important;
  color: var(--btnText) !important;
  border: none !important;
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.10);
}
.wow-btn-secondary, .wow-btn.secondary {
  background: transparent !important;
  border: 1px solid var(--line2) !important;
  color: var(--text) !important;
}

/* Wizard pages: show only active */
.wow-step-page { display: none !important; }
.wow-step-page.wow-active { display: block !important; }

/* Mobile step header can be hidden (desktop wizard handles it) */
@media (min-width: 980px) {
  .wow-mobile { display: none !important; }
}

/* Responsive */
@media (max-width: 1180px) {
  .wow-shell { grid-template-columns: 1fr; }
  .wow-rail { position: relative; top: auto; }
}

/* Theme toggle (small, top-right inside header) */
.mm-theme-toggle {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.75);
  color: var(--text);
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.08);
}
html[data-theme="dark"] .mm-theme-toggle {
  background: rgba(255,255,255,0.06);
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}

/* Footer */
.wow-footer { max-width: 1360px; margin: 0 auto; padding: 18px 22px 34px; color: var(--muted2); }



/* ---------- Contrast fixes (Day + Dark) ---------- */
.wow-section-head h2,
.wow-section-head h3,
.wow-section-head h4 { color: var(--text) !important; }

.wow-section-head p { color: var(--muted) !important; }

.wow-field label {
  display: block;
  margin: 0 0 8px 0;
  color: var(--text) !important;
  font-weight: 650;
  font-size: 13px;
  letter-spacing: .01em;
}

.wow-field input,
.wow-field select,
.wow-field textarea {
  background: var(--input-bg) !important;
  border: 1px solid var(--input-border) !important;
  color: var(--text) !important;
  border-radius: 14px;
}

.wow-field input::placeholder,
.wow-field textarea::placeholder {
  color: rgba(15, 23, 42, 0.45) !important;
}

html[data-theme="dark"] .wow-field input::placeholder,
html[data-theme="dark"] .wow-field textarea::placeholder {
  color: rgba(238, 242, 255, 0.55) !important;
}

.wow-help,
.wow-muted,
.wow-draft,
.wow-hint,
small { color: var(--muted2) !important; }

.wow-field input:focus,
.wow-field select:focus,
.wow-field textarea:focus {
  outline: none !important;
  box-shadow: 0 0 0 4px var(--input-focus) !important;
  border-color: var(--accentLine) !important;
}
