/* Shared design tokens for the dashboard-side pages (admin / super /
 * check-in / ticket / reset). Light palette on :root; `html.dark` swaps the
 * values — theme.js sets that class pre-paint from the stored choice or the
 * OS preference. Pages style themselves through these variables only.
 * Accent and type follow the VICOSYS brand: green #40DA85 (logo "VICO"),
 * ink #212121, Outfit. The green is too light for white text or text on
 * white, so buttons carry ink text and --accent-text is a darker green. */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(/vendor/outfit/outfit-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  /* CJK falls through to the system faces; Outfit has Latin only. */
  --font: "Outfit", system-ui, -apple-system, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;

  /* Neutrals follow VICOSYS: card grey #F4F4F4, line #D9D9D9, ink #212121. */
  --bg: #f4f4f4;
  --surface: #ffffff;
  --surface-2: #f4f4f4;      /* inset panels, hovers, keyboxes */
  --surface-faint: #fafafa;  /* barely-raised rows */
  --border: #e6e6e6;
  --border-soft: #efefef;
  --border-strong: #d9d9d9;

  --text: #212121;
  --text-2: #4f4f4f;
  --text-3: #767676;         /* VICOSYS #797979 nudged to 4.5:1 on white */

  --brand-gradient: linear-gradient(272deg, #13bca2 5%, #35d268 68%, #61d37c 93%);
  --brand-black: #0d0c0c;

  --accent: #40da85;
  --accent-hover: #5be2b5;
  --accent-text: #0a7a45;    /* accent used AS text on the page bg (4.9:1) */
  --accent-soft: #e3f8ec;
  --accent-border: #a6ebc4;
  --btn-text: #212121;       /* ink on green, 8.9:1 */

  --danger: #dc2626;
  --danger-hover: #b91c1c;
  --danger-text: #b52222;
  --danger-soft: #fdeeee;
  --danger-border: #f2c4c4;

  --ok-text: #177c41;   --ok-soft: #dcf5e5;
  --warn-text: #8a5a0d; --warn-soft: #fdf3cd;
  --info-text: #1d4ed8; --info-soft: #dceafe;
  --indigo-text: #3b3fa8; --indigo-soft: #e2e6fb;
  --orange-text: #bb4a0c; --orange-soft: #ffe8d2;
  --neutral-text: #4b5563; --neutral-soft: #e7eaef;

  --overlay: rgba(15, 23, 42, 0.5);
  --tip-bg: #212121;
  --tip-text: #f4f4f4;
  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-pop: 0 12px 32px rgba(16, 24, 40, 0.16);
  --focus-ring: 0 0 0 3px rgba(64, 218, 133, 0.35);
}

html.dark {
  color-scheme: dark;

  --bg: #0d0c0c;              /* VICOSYS black */
  --surface: #181717;
  --surface-2: #221f1f;
  --surface-faint: #1c1a1a;
  --border: #2e2b2b;          /* VICOSYS dark */
  --border-soft: #262323;
  --border-strong: #423d3d;

  --text: #f2f2f2;
  --text-2: #bdbdbd;
  --text-3: #8f8f8f;

  --accent: #40da85;
  --accent-hover: #5be2b5;
  --accent-text: #6fe3a3;
  --accent-soft: #12301f;
  --accent-border: #1f6a43;
  --btn-text: #0d0c0c;

  --danger: #d33d42;
  --danger-hover: #e5595e;
  --danger-text: #ff9598;
  --danger-soft: #3c1d20;
  --danger-border: #663339;

  --ok-text: #6fdd9a;   --ok-soft: #16301f;
  --warn-text: #e8c268; --warn-soft: #33290f;
  --info-text: #8fb7ff; --info-soft: #1c2c4a;
  --indigo-text: #a3a8f0; --indigo-soft: #232655;
  --orange-text: #f0a06a; --orange-soft: #38200f;
  --neutral-text: #aab2bf; --neutral-soft: #262d3a;

  --overlay: rgba(0, 0, 0, 0.6);
  --tip-bg: #f2f2f2;
  --tip-text: #212121;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-pop: 0 12px 32px rgba(0, 0, 0, 0.55);
  --focus-ring: 0 0 0 3px rgba(64, 218, 133, 0.3);
}

/* Shared theme-toggle button (header). */
.theme-toggle {
  width: 34px; height: 32px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border-strong);
  border-radius: 8px; cursor: pointer; font-size: 0.95rem; line-height: 1;
  color: var(--text-2);
}
.theme-toggle:hover { background: var(--surface-2); }

/* Product wordmark (brand/vico-events-inline.svg inlined in the header):
   "VICO" stays green, "EVENTS" takes the text colour so it flips with the theme. */
.brand-mark { display: inline-flex; align-items: center; color: var(--text); line-height: 0; }
.brand-mark svg { height: 34px; width: auto; }
.brand-sep { width: 1px; height: 28px; background: var(--border-strong); }
@media (max-width: 760px) { .brand-mark svg { height: 26px; } }
