/*
 * Pestsoft design tokens, shared by the customer site and the admin panel.
 * Dark ("Wiki Nacht", like wiki.nector.at) is the default; light ("Hybrid") is the "Heller Modus".
 * theme.js sets data-theme="light" on <html> before the first paint when the viewer chose it.
 * Every color in styles.css and admin.css comes from these tokens. Brand: Nunito, #005AFF, #00E6FA, #00FFB4, #FF7850.
 */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/nunito-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; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/nunito-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --font: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Surfaces, from the page background up */
  /* Values from the wiki theme (wiki.nector.at, dark mode) */
  --bg: #0c1423;
  --surface: #131f32;
  --surface-2: #19263b;
  --surface-3: #1c3356;
  --input-bg: #0f1a2b;
  --border: #2a3b54;
  --border-strong: #42618a;

  /* Text */
  --text: #e5edfb;
  --text-2: #c9d5e8;
  --muted: #abbad1;
  --faint: #7f90ab;

  /* Brand and interaction */
  --primary: #00e6fa;
  --primary-hover: #63f0fc;
  --on-primary: #04202a;
  --link: #8ab7ff;
  --accent: #00e6fa;
  --accent-soft: #00e6fa17;
  --accent-border: #00e6fa66;
  --focus: #00e6fa;
  --chip: #162c51;
  --chip-text: #a9cbff;

  /* Roadmap stages */
  --planned: #00e6fa;
  --progress: #ff7850;
  --done: #00ffb4;

  /* Feedback states */
  --success-bg: #00ffb412; --success-text: #6ff5cc; --success-border: #00ffb440;
  --warn-bg: #ffb44a14; --warn-text: #ffcb7a; --warn-border: #ffb44a40;
  --danger-bg: #ff3c5014; --danger-text: #ff98a3; --danger-border: #ff3c5047;
  --danger: #e0475a; --danger-hover: #f05b6d;

  /* Header band (same in both themes, like the wiki) */
  --header-bg: radial-gradient(ellipse at 55% 0%, rgb(0 90 255 / 48%), transparent 75%), linear-gradient(112deg, #081a3c 0%, #103371 62%, #0646ad 100%);
  --header-text: #ffffff;
  --header-muted: #c7d6f5;
  --header-line: rgb(0 230 250 / 48%);
  --header-active: #ffffff1f;
  --logo: #00e6fa;

  --shadow: 0 5px 22px rgb(0 0 0 / 15%);
  --shadow-lg: 0 12px 32px rgb(0 0 0 / 25%);
  --backdrop: rgb(5 10 20 / 72%);
  --glow: radial-gradient(ellipse, #0f4fd633 0, transparent 65%);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-2: #f7f9fd;
  --surface-3: #eaf1ff;
  --input-bg: #ffffff;
  --border: #e0e7f2;
  --border-strong: #b6c9e6;

  --text: #152848;
  --text-2: #2f4263;
  --muted: #586983;
  --faint: #7f8ea6;

  --primary: #005aff;
  --primary-hover: #0047cc;
  --on-primary: #ffffff;
  --link: #002e85;
  --accent: #005aff;
  --accent-soft: #005aff12;
  --accent-border: #005aff59;
  --focus: #005aff;
  --chip: #eaf1ff;
  --chip-text: #0047cc;

  --planned: #005aff;
  --progress: #e8603a;
  --done: #00a878;

  --success-bg: #e8f8f1; --success-text: #1d7a5c; --success-border: #bfe8d6;
  --warn-bg: #fdf6e7; --warn-text: #8a6a1f; --warn-border: #efdcae;
  --danger-bg: #fff4f3; --danger-text: #a8392b; --danger-border: #f1d2cc;
  --danger: #c23b2e; --danger-hover: #a53226;

  --shadow: 0 5px 22px rgb(20 43 85 / 5%);
  --shadow-lg: 0 12px 32px rgb(20 43 85 / 10%);
  --backdrop: #0f1b3359;
  --glow: radial-gradient(ellipse, #00e6fa26 0, transparent 65%);
}

html { background: var(--bg); }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-synthesis: none; -webkit-font-smoothing: antialiased; }

/* Header band shared by both pages */
.brand-logo { display: block; width: 128px; height: 30px; background: var(--logo);
  -webkit-mask: url(/pestsoft-logo.png) left center / contain no-repeat; mask: url(/pestsoft-logo.png) left center / contain no-repeat; }
.brand-suffix { font-weight: 800; font-size: 14px; letter-spacing: .6px; text-transform: uppercase; color: var(--header-text); padding-top: 3px; }
.theme-toggle { display: inline-grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 8px; border: 1px solid #ffffff38; background: #ffffff10; color: var(--header-text); padding: 0; }
.theme-toggle:hover { background: #ffffff24; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
