/* ══════════════════════════════════════════════════════════
   ITE UI — Canonical Design Tokens v2.0.0
   Generated from tokens.json by build.py — DO NOT EDIT DIRECTLY
   ══════════════════════════════════════════════════════════ */

/* ── Tmavý režim (výchozí pro ENTERA) ── */
:root,
:root[data-theme="dark"] {
  /* Barevné plochy */
  --ite-color-bg: #0d1117;
  --ite-color-surface: #161b22;
  --ite-color-surface-2: #1c2128;
  --ite-color-surface-3: #22272e;
  --ite-color-border: #30363d;
  --ite-color-border-2: #3f4752;

  /* Text */
  --ite-color-text: #e6edf3;
  --ite-color-text-2: #8b949e;
  --ite-color-text-3: #484f58;

  /* Akcent & stavy */
  --ite-color-accent: #58a6ff;
  --ite-color-accent-ink: #03202e;
  --ite-color-ok: #3fb950;
  --ite-color-ok-ink: #04220f;
  --ite-color-warn: #d29922;
  --ite-color-warn-ink: #231a00;
  --ite-color-err: #f85149;
  --ite-color-err-ink: #ffffff;
  --ite-color-info: #38bdf8;
  --ite-color-info-ink: #03202e;
  --ite-color-ai: #bc8cff;
  --ite-color-ai-ink: #ffffff;

  /* Brand vrstva (IT Enterprise) */
  --ite-brand-accent: #58a6ff;
  --ite-brand-accent-dark: #0369a1;
  --ite-brand-accent-ink: #ffffff;

  /* Kokpit sémantické stavy uzlů */
  --ite-color-state-cervena: #EF6A55;
  --ite-color-state-oranzova: #E0AB3C;
  --ite-color-state-modra: #5B9BD5;
  --ite-color-state-zelena: #3FC978;
  --ite-color-state-vykricnik: #A98BE0;
  --ite-color-state-zluta: #F0DC5A;
  --ite-color-state-zluta-ink: #231a00;

  /* Kokpit typy entit / druh uzlu */
  --ite-color-type-cil: #E0B24A;
  --ite-color-type-plan: #5B9BD5;
  --ite-color-type-projekt: #33C0AE;
  --ite-color-type-ukol: #93A2B2;
  --ite-color-type-ukol-r: #3FC978;
  --ite-color-type-myslenka: #A98BE0;
  --ite-color-type-navazany: #37C0DE;
  --ite-color-type-koment: #8494A2;
  --ite-color-type-feedback: #E0AB3C;
  --ite-color-type-server: #7C8FA0;
  --ite-color-type-sluzba: #33B6CE;
  --ite-color-type-app: #6BA0E0;
  --ite-color-type-firma: #A98BE0;
  --ite-color-type-tym: #9C8FD0;
  --ite-color-type-user: #8FA0B0;
  --ite-color-type-opravneni: #EF6A55;
  --ite-color-type-dok: #C0AE7E;
  --ite-color-type-komunikace: #4FC0C0;
  --ite-color-type-asistent: #DE6AC8;

  /* Stíny */
  --ite-shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --ite-shadow: 0 4px 14px rgba(0,0,0,0.4);
  --ite-shadow-lg: 0 10px 30px rgba(0,0,0,0.45);

  /* Spacing */
  --ite-space-1: 4px;
  --ite-space-2: 8px;
  --ite-space-3: 12px;
  --ite-space-4: 16px;
  --ite-space-5: 20px;
  --ite-space-6: 24px;
  --ite-space-8: 32px;
  --ite-space-10: 40px;
  --ite-space-12: 48px;

  /* Radius */
  --ite-radius-xs: 2px;
  --ite-radius-sm: 4px;
  --ite-radius-md: 6px;
  --ite-radius-base: 6px;
  --ite-radius-lg: 8px;
  --ite-radius-xl: 12px;
  --ite-radius-2xl: 16px;
  --ite-radius-full: 9999px;

  /* Sizes */
  --ite-size-topbar: 48px;
  --ite-size-sidebar: 260px;
  --ite-size-header-tablet: 56px;

  /* Tap targets (WCAG 2.5.5) */
  --ite-tap-min: 28px;
  --ite-tap-min-touch: 44px;

  /* Z-index scale */
  --ite-z-sidebar: 900;
  --ite-z-topbar: 1000;
  --ite-z-dropdown: 1100;
  --ite-z-modal: 2000;
  --ite-z-toast: 3000;
  --ite-z-fab: 9990;
  --ite-z-tooltip: 9999;

  /* Typography */
  --ite-font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans Hebrew', Arial, sans-serif;
  --ite-font-mono: ui-monospace, 'SFMono-Regular', 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

  /* Motion */
  --ite-motion-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --ite-motion-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --ite-motion-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Světlý režim ── */
:root[data-theme="light"] {
  --ite-color-bg: #ffffff;
  --ite-color-surface: #f6f8fa;
  --ite-color-surface-2: #eaeef2;
  --ite-color-surface-3: #e2eaf4;
  --ite-color-border: #d0d7de;
  --ite-color-border-2: #c4ceda;
  --ite-color-text: #1f2328;
  --ite-color-text-2: #636c76;
  --ite-color-text-3: #818b98;
  --ite-color-accent: #0969da;
  --ite-color-accent-ink: #ffffff;
  --ite-color-ok: #1a7f37;
  --ite-color-ok-ink: #ffffff;
  --ite-color-warn: #9a6700;
  --ite-color-warn-ink: #ffffff;
  --ite-color-err: #cf222e;
  --ite-color-err-ink: #ffffff;
  --ite-color-info: #0969da;
  --ite-color-info-ink: #ffffff;
  --ite-color-ai: #8250df;
  --ite-color-ai-ink: #ffffff;

  /* Brand vrstva (IT Enterprise) */
  --ite-brand-accent: #58a6ff;
  --ite-brand-accent-dark: #0369a1;
  --ite-brand-accent-ink: #ffffff;

  /* Kokpit světlé stavy */
  --ite-color-state-cervena: #C6402F;
  --ite-color-state-oranzova: #C98A12;
  --ite-color-state-modra: #2F74C0;
  --ite-color-state-zelena: #1a7f37;
  --ite-color-state-vykricnik: #8A5CD0;
  --ite-color-state-zluta: #9C8100;
  --ite-color-state-zluta-ink: #ffffff;
  /* Kokpit světlé typy entit */
  --ite-color-type-cil: #C6912A;
  --ite-color-type-plan: #2F74C0;
  --ite-color-type-projekt: #0E9E8E;
  --ite-color-type-ukol: #5E6E7E;
  --ite-color-type-ukol-r: #1a7f37;
  --ite-color-type-myslenka: #8A5CD0;
  --ite-color-type-navazany: #1499B8;
  --ite-color-type-koment: #7A8794;
  --ite-color-type-feedback: #C98A12;
  --ite-color-type-server: #455565;
  --ite-color-type-sluzba: #0E8FA8;
  --ite-color-type-app: #3F6FC0;
  --ite-color-type-firma: #8A5CD0;
  --ite-color-type-tym: #6E5FA8;
  --ite-color-type-user: #6B7A89;
  --ite-color-type-opravneni: #C6402F;
  --ite-color-type-dok: #8A7B55;
  --ite-color-type-komunikace: #2FA0A0;
  --ite-color-type-asistent: #B0429B;
  --ite-shadow-sm: 0 1px 2px rgba(20,30,45,.06);
  --ite-shadow: 0 4px 14px rgba(20,30,45,.08);
  --ite-shadow-lg: 0 10px 30px rgba(15,23,42,.12);
}

/* ── Automatické přepnutí podle preferencí OS (data-theme="auto") ── */
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] {
    --ite-color-bg: #ffffff;
    --ite-color-surface: #f6f8fa;
    --ite-color-surface-2: #eaeef2;
    --ite-color-surface-3: #e2eaf4;
    --ite-color-border: #d0d7de;
    --ite-color-border-2: #c4ceda;
    --ite-color-text: #1f2328;
    --ite-color-text-2: #636c76;
    --ite-color-text-3: #818b98;
    --ite-color-accent: #0969da;
    --ite-color-accent-ink: #ffffff;
    --ite-color-ok: #1a7f37;
    --ite-color-ok-ink: #ffffff;
    --ite-color-warn: #9a6700;
    --ite-color-warn-ink: #ffffff;
    --ite-color-err: #cf222e;
    --ite-color-err-ink: #ffffff;
    --ite-color-info: #0969da;
    --ite-color-info-ink: #ffffff;
    --ite-color-ai: #8250df;
    --ite-color-ai-ink: #ffffff;
    --ite-color-state-cervena: #C6402F;
    --ite-color-state-oranzova: #C98A12;
    --ite-color-state-modra: #2F74C0;
    --ite-color-state-zelena: #1a7f37;
    --ite-color-state-vykricnik: #8A5CD0;
    --ite-color-state-zluta: #9C8100;
    --ite-color-state-zluta-ink: #ffffff;
    --ite-color-type-cil: #C6912A;
    --ite-color-type-plan: #2F74C0;
    --ite-color-type-projekt: #0E9E8E;
    --ite-color-type-ukol: #5E6E7E;
    --ite-color-type-ukol-r: #1a7f37;
    --ite-color-type-myslenka: #8A5CD0;
    --ite-color-type-navazany: #1499B8;
    --ite-color-type-koment: #7A8794;
    --ite-color-type-feedback: #C98A12;
    --ite-color-type-server: #455565;
    --ite-color-type-sluzba: #0E8FA8;
    --ite-color-type-app: #3F6FC0;
    --ite-color-type-firma: #8A5CD0;
    --ite-color-type-tym: #6E5FA8;
    --ite-color-type-user: #6B7A89;
    --ite-color-type-opravneni: #C6402F;
    --ite-color-type-dok: #8A7B55;
    --ite-color-type-komunikace: #2FA0A0;
    --ite-color-type-asistent: #B0429B;
  }
}
