/* tokens.css: Farben und Maße (Design-Tokens) für hell und dunkel. Teil der Weboberfläche, Reihenfolge siehe index.html. */

/* ==========================================================================
   Icingo Web – Design-Tokens
   Hell ist der Standard; dunkel gilt mit der Systemeinstellung (außer der
   Benutzer hat "hell" gewählt) oder wenn der Benutzer "dunkel" gewählt hat.
   ========================================================================== */
:root {
  color-scheme: light;
  --bg: #f4f6f9;           /* Hintergrund hinter den Karten */
  --panel: #ffffff;        /* Spalten, Karten, Dialoge */
  --panel-2: #f8fafc;      /* dezente Flächen: Tabellenköpfe, Code, Eingaben */
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --border: #e5e9f0;
  --border-strong: #d3dae4;
  --row-hover: #f3f6fa;
  --row-active: #e6f3fb;

  --sidebar: #0d1424;
  --sidebar-2: #131c30;    /* Suchfeld, Hover */
  --sidebar-text: #a3afc2;
  --sidebar-head: #6b7891;
  --sidebar-border: #1c263b;
  --sidebar-active: rgba(56, 170, 238, .14);

  --brand: #0ea5e9;        /* Logo */
  --accent: #0277bd;       /* Links, aktive Markierungen, Fokus */
  --primary: #0277bd;      /* Haupt-Knöpfe (weiße Schrift, Kontrast 4.9:1) */
  --primary-hover: #01659f;
  --accent-soft: #e3f1fa;
  --focus-ring: 0 0 0 3px rgba(2, 119, 189, .22);

  /* Statusfarben (Bedeutung wie bei Icinga, nur für Zustände) */
  --ok: #44bb77;
  --warning: #ffaa44;
  --critical: #ff5566;
  --unknown: #aa44ff;
  --pending: #77aaff;
  --ok-handled: #8fd3ab;
  --warning-handled: #ffcc8e;
  --critical-handled: #ff99a4;
  --unknown-handled: #cc8fff;
  --critical-soft: #fff0f2;

  --series-1: #2a78d6; /* icingo (Kategorie 1, geprüft auf #ffffff) */
  --series-2: #eb6834; /* ganzes System (Kategorie 2) */

  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 1px 3px rgba(15, 23, 42, .07), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .28);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Cascadia Code", Consolas, "JetBrains Mono", "DejaVu Sans Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a0f1a; --panel: #111827; --panel-2: #172031; --text: #e6eaf0; --text-2: #c3cad6; --muted: #8b97ab;
    --border: #222d40; --border-strong: #2f3c52; --row-hover: #172133; --row-active: #10304a;
    --sidebar: #080c15; --sidebar-2: #111a2a; --sidebar-border: #162034;
    --accent: #4cb3ee; --accent-soft: #10304a; --focus-ring: 0 0 0 3px rgba(76, 179, 238, .3);
    --series-1: #3987e5; --series-2: #d95926; /* dunkle Stufen */
    --ok-handled: #2f6e4a; --warning-handled: #8a6230; --critical-handled: #8a3a44; --unknown-handled: #5f3a85;
    --critical-soft: #3a1820;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 1px 3px rgba(0, 0, 0, .4); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0f1a; --panel: #111827; --panel-2: #172031; --text: #e6eaf0; --text-2: #c3cad6; --muted: #8b97ab;
  --border: #222d40; --border-strong: #2f3c52; --row-hover: #172133; --row-active: #10304a;
  --sidebar: #080c15; --sidebar-2: #111a2a; --sidebar-border: #162034;
  --accent: #4cb3ee; --accent-soft: #10304a; --focus-ring: 0 0 0 3px rgba(76, 179, 238, .3);
  --series-1: #3987e5; --series-2: #d95926;
  --ok-handled: #2f6e4a; --warning-handled: #8a6230; --critical-handled: #8a3a44; --unknown-handled: #5f3a85;
  --critical-soft: #3a1820;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 1px 3px rgba(0, 0, 0, .4); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
}
