/* SchoolCRM design tokens.
 * Theme A "Sunrise Coral" is THE theme (founder, 2026-10-10): :root carries it
 * and the inner pages use it. B/C/D stay available as token sets for later,
 * selected with <html data-theme="B|C|D"> (values from mockups/index.html).
 * Fonts are self-hosted (public/fonts, OFL.txt); no CDN at runtime.
 */

/* ---- fonts ---- */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/nunito-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 900; font-display: swap; src: url("/fonts/nunito-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/baloo-2-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/baloo-2-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/baloo-2-devanagari-700-normal.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/baloo-2-devanagari-800-normal.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/inter-latin-700-normal.woff2") format("woff2"); }

/* Gujarati: self-hosted Noto Sans Gujarati (OFL), Gujarati block only, so it
   is downloaded only when Gujarati text is on the page. Devanagari falls
   through to Baloo 2. */
@font-face { font-family: "Noto Sans Gujarati"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/noto-sans-gujarati-gujarati-400-normal.woff2") format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0A80-0AFF, U+200C-200D, U+20B9, U+25CC, U+A830-A839; }
@font-face { font-family: "Noto Sans Gujarati"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/noto-sans-gujarati-gujarati-600-normal.woff2") format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0A80-0AFF, U+200C-200D, U+20B9, U+25CC, U+A830-A839; }
@font-face { font-family: "Noto Sans Gujarati"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/noto-sans-gujarati-gujarati-700-normal.woff2") format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0A80-0AFF, U+200C-200D, U+20B9, U+25CC, U+A830-A839; }
@font-face { font-family: "Noto Sans Gujarati"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/noto-sans-gujarati-gujarati-800-normal.woff2") format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0A80-0AFF, U+200C-200D, U+20B9, U+25CC, U+A830-A839; }

/* ---- Theme A: Teal Glass (founder 2026-11-09: "same theme as the new login inside the app too") ---- */
:root,
[data-theme="A"] {
  --pri: #0b7a6c;
  --pri2: #0a6f86;
  --gold: #ffd36b;
  --soft: #e6f4f1;
  --line: #e0e7ea;
  --bg: #f3f8f8;
  --canvas: #f2f7f7;
  --surface: #fff;
  --ink: #1d2433;
  --muted: #5b6475;
  --side: rgba(255, 255, 255, .82);
  --sideink: var(--ink);
  --navon: #e3f3ef;
  --radius: 16px;
  --font: "Poppins", "Noto Sans Gujarati", "Baloo 2", system-ui, "Segoe UI", "Nirmala UI", sans-serif;
  --font-display: "Poppins", "Noto Sans Gujarati", "Baloo 2", system-ui, "Nirmala UI", sans-serif;
}

/* ---- Theme "coral": Sunrise Coral (the theme until 2026-11-09, kept for a quick switch back: data-theme="coral") ---- */
[data-theme="coral"] {
  --pri: #f0533b;
  --pri2: #ff8a3d;
  --gold: #ffc46b;
  --soft: #fff2ec;
  --line: #f1e4dc;
  --bg: #fffaf6;
  --canvas: #fff7f1;
  --surface: #fff;
  --ink: #2d2a4a;
  --muted: #7a7290;
  --side: var(--surface);
  --sideink: var(--ink);
  --navon: #fff2ec;
  --radius: 18px;
  --font: "Nunito", "Baloo 2", "Noto Sans Gujarati", system-ui, "Segoe UI", "Nirmala UI", sans-serif;
  --font-display: "Baloo 2", "Nunito", "Noto Sans Gujarati", system-ui, "Nirmala UI", sans-serif;
}

/* ---- Theme B: Ocean Indigo (kept for later) ---- */
[data-theme="B"] {
  --pri: #4f46e5; --pri2: #0ea5e9; --soft: #eef0ff; --line: #e4e7f2; --bg: #f6f7fc; --canvas: #f6f7fc;
  --surface: #fff; --ink: #1d2433; --muted: #667085; --radius: 14px;
  --side: #14163a; --sideink: #e6e8ff; --navon: rgba(255, 255, 255, .1);
  --font: "Plus Jakarta Sans", "Noto Sans Gujarati", system-ui, "Nirmala UI", sans-serif; --font-display: var(--font);
}

/* ---- Theme C: Mint Fresh (kept for later) ---- */
[data-theme="C"] {
  --pri: #0f9d76; --pri2: #22c3a6; --soft: #e9f8f3; --line: #e2eeea; --bg: #f4fbf8; --canvas: #f4fbf8;
  --surface: #fff; --ink: #1d2433; --muted: #667085; --radius: 16px; --side: var(--surface); --sideink: var(--ink); --navon: var(--soft);
  --font: "Poppins", "Noto Sans Gujarati", system-ui, "Nirmala UI", sans-serif; --font-display: var(--font);
}

/* ---- Theme D: Midnight Violet, dark (kept for later) ---- */
[data-theme="D"] {
  --pri: #8b5cf6; --pri2: #ec4899; --soft: #221d33; --line: #2c2640; --bg: #100d1a; --canvas: #100d1a;
  --surface: #181425; --ink: #ece9f5; --muted: #9a93b0; --radius: 16px; --side: var(--surface); --sideink: var(--ink); --navon: var(--soft);
  --font: "Plus Jakarta Sans", "Noto Sans Gujarati", system-ui, "Nirmala UI", sans-serif; --font-display: var(--font);
}

/* ---- per-module accents + status (same in every theme) ---- */
:root {
  --mod-fees: #16a34a;
  --mod-attendance: #2563eb;
  --mod-admission: #7c3aed;
  --mod-exams: #ea580c;
  --mod-comms: #db2777;
  --mod-students: #0891b2;
  --mod-settings: #64748b;
  --ok: #12a150;
  --warn: #d97706;
  --danger: #dc2626;
}
