/* Tokeny z Figmy TKvUuxpL1tPYR1kqT3S9LM — kolekcje Color (Light krem / Dark grafit), Size, Typography.
   Nazwy = code syntax zmiennych z Figmy. Nie wpisuj kolorów ani rozmiarów w style.css — tylko var(). */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/static/fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/static/fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/static/fonts/Inter-SemiBold.woff2") format("woff2"); }

:root {
  color-scheme: light;
  /* Color · Light (krem) */
  --color-bg-page: #fdfcf9;
  --color-bg-surface: #fffefb;
  --color-bg-subtle: #f7f5f0;
  --color-bg-sidebar: #efece4;
  --color-bg-hover: #e8e4da;
  --color-bg-brand: #245ad3;
  --color-bg-brand-subtle: #eef3fe;
  --color-border-subtle: #e8e4da;
  --color-border-default: #e3dfd5;
  --color-border-strong: #d4cfc3;
  --color-text-primary: #1f2421;
  --color-text-secondary: #5b605a;
  --color-text-tertiary: #7c8079;
  --color-text-brand: #245ad3;
  --color-text-on-brand: #ffffff;
  --color-icon-default: #7c8079;
  --color-badge-bg: #f79009;
  --color-badge-text: #ffffff;
  --color-status-green: #17b26a;
  --color-status-blue: #2e90fa;
  --color-status-violet: #7a5af8;
  --color-status-amber: #f79009;
  --color-status-red: #f04438;
  --color-chart-fill: #245ad3;
  --color-chart-empty: #f7f5f0;
  --color-overlay: rgb(31 36 33 / 0.32);
  --color-warning-bg: #fef6e7;
  --shadow-panel: -12px 0 32px rgb(31 36 33 / 0.10);
  --shadow-pop: 0 16px 48px rgb(31 36 33 / 0.18);

  /* Size */
  --size-sidebar: 232px;
  --size-sidebar-collapsed: 64px;
  --size-panel: 800px;
  --size-control: 36px;
  --size-avatar: 32px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 999px;

  /* Typography */
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-size-xs: 12px;
  --font-size-sm: 13px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --line-height-body: 1.5;
  --line-height-section: 1.45;
  --line-height-title: 1.3;
  --line-height-display: 1.25;
}

/* Color · Dark (grafit) */
:root[data-theme="dark"] {
  color-scheme: dark;
  --color-bg-page: #161616;
  --color-bg-surface: #1c1c1c;
  --color-bg-subtle: #121212;
  --color-bg-sidebar: #121212;
  --color-bg-hover: #242424;
  --color-bg-brand: #3d6be6;
  --color-bg-brand-subtle: #1d2540;
  --color-border-subtle: #242424;
  --color-border-default: #2c2c2c;
  --color-border-strong: #414651;
  --color-text-primary: #f2f2f2;
  --color-text-secondary: #8f8f8f;
  --color-text-tertiary: #717680;
  --color-text-brand: #6f8ff0;
  --color-text-on-brand: #ffffff;
  --color-icon-default: #8f8f8f;
  --color-badge-bg: #f79009;
  --color-badge-text: #ffffff;
  --color-status-green: #4ade80;
  --color-status-blue: #60a5fa;
  --color-status-violet: #7a5af8;
  --color-status-amber: #fb923c;
  --color-status-red: #f87171;
  --color-chart-fill: #3d6be6;
  --color-chart-empty: #242424;
  --color-overlay: rgb(0 0 0 / 0.55);
  --color-warning-bg: #2b2112;
  --shadow-panel: -12px 0 32px rgb(0 0 0 / 0.45);
  --shadow-pop: 0 16px 48px rgb(0 0 0 / 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --color-bg-page: #161616;
    --color-bg-surface: #1c1c1c;
    --color-bg-subtle: #121212;
    --color-bg-sidebar: #121212;
    --color-bg-hover: #242424;
    --color-bg-brand: #3d6be6;
    --color-bg-brand-subtle: #1d2540;
    --color-border-subtle: #242424;
    --color-border-default: #2c2c2c;
    --color-border-strong: #414651;
    --color-text-primary: #f2f2f2;
    --color-text-secondary: #8f8f8f;
    --color-text-tertiary: #717680;
    --color-text-brand: #6f8ff0;
    --color-text-on-brand: #ffffff;
    --color-icon-default: #8f8f8f;
    --color-status-green: #4ade80;
    --color-status-blue: #60a5fa;
    --color-status-violet: #7a5af8;
    --color-status-amber: #fb923c;
    --color-status-red: #f87171;
    --color-chart-fill: #3d6be6;
    --color-chart-empty: #242424;
    --color-overlay: rgb(0 0 0 / 0.55);
    --color-warning-bg: #2b2112;
    --shadow-panel: -12px 0 32px rgb(0 0 0 / 0.45);
    --shadow-pop: 0 16px 48px rgb(0 0 0 / 0.6);
  }
}
