/*
 * WPorbit-Marke für die Server-Seiten (Dashboard, Admin, Signup).
 * Quelle: wpcontrol.io-Landingpage/src/index.css (V3-Tokens). Admin und Signup
 * binden diese Datei über /dashboard/tokens.css ein, damit es nur eine gibt.
 */

@font-face { font-family: 'General Sans'; src: url('fonts/GeneralSans-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('fonts/GeneralSans-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('fonts/GeneralSans-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light;

  --base: oklch(98.7% 0.004 282);
  --surface: oklch(99.4% 0.003 282);
  --raised: oklch(96.3% 0.007 284);
  --line: oklch(90.5% 0.007 284);
  --line-soft: oklch(94.5% 0.005 284);

  --primary: oklch(19% 0.014 282);
  --secondary: oklch(38% 0.013 282);
  --tertiary: oklch(52% 0.011 282);

  --accent: oklch(52% 0.185 288);
  --accent-strong: oklch(44% 0.17 290);
  --accent-tint: oklch(95% 0.028 288);
  --accent-text: oklch(46% 0.18 289);
  --on-accent: oklch(98% 0.004 282);

  /* Die App-Leiste bleibt in beiden Modi dunkel. */
  --rail: oklch(18% 0.032 267);
  --rail-raised: oklch(24% 0.034 267);
  --rail-line: oklch(29% 0.03 267);
  --on-rail: oklch(96% 0.006 282);
  --on-rail-2: oklch(74% 0.02 275);

  /* Zustände: Farbe nur zusammen mit Form und Wort. */
  --good: oklch(60% 0.14 152);
  --warning: oklch(76% 0.15 78);
  --serious: oklch(66% 0.16 48);
  --critical: oklch(56% 0.2 25);
  --unknown: oklch(70% 0.01 282);
  --warning-text: oklch(50% 0.12 70);
  --critical-text: oklch(50% 0.19 25);
  --warning-tint: oklch(96% 0.04 85);
  --critical-tint: oklch(96% 0.025 25);

  --font: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  /* General Sans hat keine Tabellenziffern: Zahlen in Spalten laufen in der
     Systemschrift, damit sie untereinanderstehen. */
  --font-num: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --radius-control: 12px;
  --radius-panel: 20px;
  --radius-small: 8px;
  --shadow-card: 0 1px 2px oklch(20% 0.02 282 / 6%), 0 1px 1px oklch(20% 0.02 282 / 4%);
  --shadow-overlay: 0 16px 40px -18px oklch(20% 0.02 282 / 22%), 0 2px 8px -2px oklch(20% 0.02 282 / 8%);
  --shadow-action: 0 8px 20px -10px oklch(52% 0.185 288 / 55%);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --base: oklch(16% 0.014 275);
    --surface: oklch(19.5% 0.016 275);
    --raised: oklch(23.5% 0.018 276);
    --line: oklch(30% 0.018 278);
    --line-soft: oklch(25.5% 0.016 277);

    --primary: oklch(96% 0.006 282);
    --secondary: oklch(80% 0.012 282);
    --tertiary: oklch(68% 0.014 282);

    --accent: oklch(58% 0.19 288);
    --accent-strong: oklch(50% 0.18 290);
    --accent-tint: oklch(29% 0.07 288);
    --accent-text: oklch(76% 0.13 288);

    --rail: oklch(11% 0.02 267);
    --rail-raised: oklch(19% 0.026 267);
    --rail-line: oklch(22% 0.024 267);

    --warning-text: oklch(82% 0.13 80);
    --critical-text: oklch(74% 0.15 25);
    --warning-tint: oklch(27% 0.05 80);
    --critical-tint: oklch(27% 0.06 25);

    --shadow-card: 0 1px 2px oklch(0% 0 0 / 30%), 0 0 0 1px oklch(100% 0 0 / 2%);
    --shadow-overlay: 0 16px 40px -18px oklch(0% 0 0 / 60%), 0 2px 8px -2px oklch(0% 0 0 / 40%);
  }
}
