/* ==========================================================================
   GOOGLE STITCH DESIGN SYSTEM - TOKENS GLOBAIS
   Projeto: CS HelpDesk Pro
   Design System: Patrimônio Enterprise / Cobalt Navy & Teal
   ========================================================================== */

:root {
  /* --- Cores Primárias --- */
  --stitch-primary: #00236f;
  --stitch-primary-container: #1e3a8a;
  --stitch-on-primary: #ffffff;
  --stitch-on-primary-container: #90a8ff;
  --stitch-primary-fixed: #dce1ff;
  --stitch-primary-fixed-dim: #b6c4ff;
  --stitch-on-primary-fixed: #00164e;

  /* --- Cores Secundárias --- */
  --stitch-secondary: #006a61;
  --stitch-secondary-container: #86f2e4;
  --stitch-on-secondary: #ffffff;
  --stitch-on-secondary-container: #006f66;
  --stitch-secondary-fixed: #89f5e7;
  --stitch-secondary-fixed-dim: #6bd8cb;

  /* --- Cores Terciárias --- */
  --stitch-tertiary: #003120;
  --stitch-tertiary-container: #004a32;
  --stitch-on-tertiary: #ffffff;
  --stitch-on-tertiary-container: #4ac08f;
  --stitch-tertiary-fixed: #85f8c4;

  /* --- Superfícies e Containers --- */
  --stitch-background: #faf8ff;
  --stitch-surface: #faf8ff;
  --stitch-surface-dim: #d2d9f4;
  --stitch-surface-bright: #faf8ff;
  --stitch-surface-container-lowest: #ffffff;
  --stitch-surface-container-low: #f2f3ff;
  --stitch-surface-container: #eaedff;
  --stitch-surface-container-high: #e2e7ff;
  --stitch-surface-container-highest: #dae2fd;
  --stitch-surface-variant: #dae2fd;
  --stitch-surface-tint: #4059aa;

  /* --- Tipografia & Contrastes --- */
  --stitch-on-background: #131b2e;
  --stitch-on-surface: #131b2e;
  --stitch-on-surface-variant: #444651;
  --stitch-outline: #757682;
  --stitch-outline-variant: #c5c5d3;
  --stitch-inverse-surface: #283044;
  --stitch-inverse-on-surface: #eef0ff;
  --stitch-inverse-primary: #b6c4ff;

  /* --- Estados Semânticos & Erro --- */
  --stitch-error: #ba1a1a;
  --stitch-error-container: #ffdad6;
  --stitch-on-error: #ffffff;
  --stitch-on-error-container: #93000a;
  --stitch-success: #059669;
  --stitch-success-container: #ecfdf5;
  --stitch-warning: #d97706;
  --stitch-warning-container: #fffbeb;

  /* --- Espaçamentos Base 8pt --- */
  --stitch-space-2xs: 0.125rem;
  --stitch-space-xs: 0.25rem;
  --stitch-space-sm: 0.5rem;
  --stitch-space-md: 0.75rem;
  --stitch-space-base: 1rem;
  --stitch-space-lg: 1.25rem;
  --stitch-space-xl: 1.5rem;
  --stitch-space-2xl: 2rem;
  --stitch-space-3xl: 3rem;
  --stitch-gutter-desktop: 1.5rem;

  /* --- Dimensões de Layout --- */
  --stitch-sidebar-width-expanded: 16rem;
  --stitch-sidebar-width-collapsed: 4.5rem;
  --stitch-header-height: 4rem;
  --stitch-modal-max-width: 48rem;

  /* --- Raios de Borda --- */
  --stitch-radius-sm: 0.125rem;
  --stitch-radius-md: 0.25rem;
  --stitch-radius-lg: 0.5rem;
  --stitch-radius-xl: 0.75rem;
  --stitch-radius-full: 9999px;

  /* --- Tipografia --- */
  --stitch-font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --stitch-font-code: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

[data-theme="dark"] {
  /* --- Cores Primárias Dark --- */
  --stitch-primary: #3b82f6;
  --stitch-primary-container: #1e3a8a;
  --stitch-on-primary: #ffffff;
  --stitch-on-primary-container: #dbeafe;
  --stitch-primary-fixed: #1e293b;
  --stitch-primary-fixed-dim: #334155;
  --stitch-on-primary-fixed: #e2e8f0;

  /* --- Cores Secundárias Dark --- */
  --stitch-secondary: #14b8a6;
  --stitch-secondary-container: #0f766e;
  --stitch-on-secondary: #ffffff;
  --stitch-on-secondary-container: #ccfbf1;
  --stitch-secondary-fixed: #134e4a;
  --stitch-secondary-fixed-dim: #115e59;

  /* --- Cores Terciárias Dark --- */
  --stitch-tertiary: #10b981;
  --stitch-tertiary-container: #065f46;
  --stitch-on-tertiary: #ffffff;
  --stitch-on-tertiary-container: #d1fae5;
  --stitch-tertiary-fixed: #064e3b;

  /* --- Superfícies e Containers Dark --- */
  --stitch-background: #090d16;
  --stitch-surface: #0d121f;
  --stitch-surface-dim: #090d16;
  --stitch-surface-bright: #161f33;
  --stitch-surface-container-lowest: #0d121f;
  --stitch-surface-container-low: #111827;
  --stitch-surface-container: #161f33;
  --stitch-surface-container-high: #1e293b;
  --stitch-surface-container-highest: #283044;
  --stitch-surface-variant: #1e293b;
  --stitch-surface-tint: #60a5fa;

  /* --- Tipografia & Contrastes Dark --- */
  --stitch-on-background: #f8fafc;
  --stitch-on-surface: #f8fafc;
  --stitch-on-surface-variant: #94a3b8;
  --stitch-outline: #475569;
  --stitch-outline-variant: #334155;
  --stitch-inverse-surface: #f8fafc;
  --stitch-inverse-on-surface: #0f172a;
  --stitch-inverse-primary: #1e3a8a;

  /* --- Estados Semânticos & Erro Dark --- */
  --stitch-error: #f87171;
  --stitch-error-container: #7f1d1d;
  --stitch-on-error: #ffffff;
  --stitch-on-error-container: #fecaca;
  --stitch-success: #34d399;
  --stitch-success-container: #064e3b;
  --stitch-warning: #fbbf24;
  --stitch-warning-container: #78350f;
}

body {
  font-family: var(--stitch-font-sans);
  background-color: var(--stitch-background);
  color: var(--stitch-on-surface);
}

/* Utilitários Tipográficos Stitch Universais */
.stitch-headline-xl, .font-headline-xl, .text-headline-xl {
  font-family: var(--stitch-font-sans);
  font-size: 2rem;
  line-height: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stitch-headline-lg, .font-headline-lg, .text-headline-lg {
  font-family: var(--stitch-font-sans);
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.stitch-headline-md, .font-headline-md, .text-headline-md {
  font-family: var(--stitch-font-sans);
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.stitch-headline-sm, .font-headline-sm, .text-headline-sm {
  font-family: var(--stitch-font-sans);
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.stitch-title-lg, .font-title-lg, .text-title-lg {
  font-family: var(--stitch-font-sans);
  font-size: 1.125rem;
  line-height: 1.5rem;
  font-weight: 600;
}

.stitch-title-md, .font-title-md, .text-title-md {
  font-family: var(--stitch-font-sans);
  font-size: 0.9375rem;
  line-height: 1.375rem;
  font-weight: 600;
}

.stitch-body-lg, .font-body-lg, .text-body-lg {
  font-family: var(--stitch-font-sans);
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 400;
}

.stitch-body-md, .font-body-md, .text-body-md {
  font-family: var(--stitch-font-sans);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 400;
}

.stitch-body-sm, .font-body-sm, .text-body-sm {
  font-family: var(--stitch-font-sans);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 400;
}

.stitch-label-lg, .font-label-lg, .text-label-lg {
  font-family: var(--stitch-font-sans);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.stitch-label-md, .font-label-md, .text-label-md {
  font-family: var(--stitch-font-sans);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.stitch-label-sm, .font-label-sm, .text-label-sm {
  font-family: var(--stitch-font-sans);
  font-size: 0.6875rem;
  line-height: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.stitch-code-sm, .font-code-sm, .text-code-sm {
  font-family: var(--stitch-font-code);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
}

