/* ŽuvelApp — Linear Clean Dark design tokens.
   Brand foundation iz spec dijela 1/4. */

:root {
  /* Backgrounds */
  --bg: #0a0a0c;
  --bg-elevated: #0d0d10;
  --bg-panel: #131316;
  --bg-hover: #18181b;
  --bg-active: #1f1f23;
  /* Alias --bg-2 = --bg-panel — koristi se u nekim komponentama (status pillovi,
     compact inputs). Bio je nedefiniran prije i CSS je padao na 'transparent'. */
  --bg-2: #131316;

  /* Borders */
  --border: rgba(255, 255, 255, 0.05);
  --border-strong: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(167, 139, 250, 0.4);

  /* Text */
  --text: #fafafa;
  --text-2: #a1a1aa;
  --text-3: #71717a;
  --text-4: #52525b;
  --text-disabled: #3f3f46;

  /* Accent (violet) */
  --accent: #a78bfa;
  --accent-hover: #8b5cf6;
  --accent-bg: rgba(167, 139, 250, 0.1);
  --accent-border: rgba(167, 139, 250, 0.3);

  /* Semantic */
  --success: #34d399;
  --success-bg: rgba(52, 211, 153, 0.1);
  --warning: #fbbf24;
  --warning-bg: rgba(251, 191, 36, 0.1);
  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.1);
  --info: #60a5fa;
  --info-bg: rgba(96, 165, 250, 0.1);

  /* Pokriće semafori */
  --pokrice-crit: #f87171;   /* <7d ili <14d kod paletnih */
  --pokrice-warn: #fbbf24;   /* 7-14d ili 14-21d */
  --pokrice-ok: #34d399;     /* 14-21d (reorder zona) */
  --pokrice-cool: #60a5fa;   /* ≥21d (priprema) */

  /* Tipografija */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;

  /* Sizes */
  --text-xs: 11px;
  --text-sm: 12px;
  --text-base: 13px;
  --text-md: 14px;
  --text-lg: 16px;
  --text-xl: 18px;
  --text-2xl: 22px;
  --text-3xl: 28px;

  /* Weights */
  --weight-regular: 400;
  --weight-medium: 500;

  /* Line heights */
  --lh-tight: 1.2;
  --lh-base: 1.5;
  --lh-loose: 1.7;

  /* Letter spacing */
  --tracking-tight: -0.02em;
  --tracking-base: -0.005em;
  --tracking-wide: 0.04em;

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

  /* Radii */
  --radius-sm: 4px;
  --radius: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Layout dimenzije */
  --sidebar-width: 240px;
  --sidebar-width-collapsed: 56px;
  --topbar-height: 48px;

  /* Responzivni breakpointi (koristi se kroz @media (max-width)/(min-width)). */
  --bp-mobile: 768px;
  --bp-tablet: 1024px;
  --bp-laptop: 1280px;
  --bp-desktop: 1600px;
}
