:root {
  color-scheme: dark;

  /* Superficies Dark Slate */
  --bg-canvas: #0B1120;
  --bg-surface: #111827;
  --bg-surface-elevated: #1E293B;
  --bg-surface-muted: #0F172A;
  --bg-input: #0D1526;

  /* Bordas e divisores */
  --border-subtle: #1E293B;
  --border-strong: #334155;
  --border-focus: #F59E0B;

  /* Tipografia */
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-inverse: #0B1120;

  /* Acentos semanticos */
  --amber-500: #F59E0B;
  --amber-400: #FBBF24;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --amber-border: rgba(245, 158, 11, 0.42);

  --emerald-500: #10B981;
  --emerald-400: #34D399;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --emerald-border: rgba(16, 185, 129, 0.42);

  --orange-500: #F97316;
  --orange-400: #FB923C;
  --orange-soft: rgba(249, 115, 22, 0.14);
  --orange-border: rgba(249, 115, 22, 0.42);

  --danger-500: #EF4444;
  --danger-300: #FCA5A5;
  --danger-soft: rgba(239, 68, 68, 0.14);
  --danger-border: rgba(239, 68, 68, 0.42);

  --neutral-soft: rgba(148, 163, 184, 0.14);
  --neutral-border: rgba(148, 163, 184, 0.34);

  /* Fontes */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Espacamento & Dimensoes */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.875rem;
  --radius-pill: 9999px;

  --touch-target: 44px;
  --sidebar-width: 256px;
  --topbar-height: 64px;
  --bottom-nav-height: 64px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.62);

  --transition-fast: 140ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

@media (max-width: 767.98px) {
  input,
  select,
  textarea {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
