/*
 * Control Hub — tokens do design system.
 *
 * Dark denso, estilo console de dados: fundo grafite, cartões com borda sutil,
 * tipografia compacta, um único acento (vermelho) e cores de série estáveis nos
 * gráficos. Todas as cores em oklch, expostas como tokens semânticos — nada de
 * cor solta no CSS dos componentes.
 */

:root {
  color-scheme: dark;

  --radius: 0.5rem;
  --radius-sm: calc(var(--radius) - 3px);
  --radius-lg: calc(var(--radius) + 4px);

  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --background: oklch(0.16 0.018 20);
  --foreground: oklch(0.93 0.012 30);
  --card: oklch(0.205 0.022 20);
  --card-foreground: oklch(0.93 0.012 30);
  --primary: oklch(0.6 0.21 25);
  --primary-foreground: oklch(0.97 0.01 30);
  --secondary: oklch(0.26 0.026 22);
  --muted: oklch(0.25 0.022 22);
  --muted-foreground: oklch(0.68 0.025 28);
  --accent: oklch(0.29 0.035 22);
  --accent-foreground: oklch(0.96 0.012 30);
  --destructive: oklch(0.62 0.22 18);
  --success: oklch(0.7 0.13 150);
  --warning: oklch(0.78 0.15 60);
  --border: oklch(0.3 0.028 22);
  --input: oklch(0.31 0.028 22);
  --ring: oklch(0.6 0.21 25);

  --chart-1: oklch(0.62 0.22 25);
  --chart-2: oklch(0.74 0.16 45);
  --chart-3: oklch(0.5 0.19 15);
  --chart-4: oklch(0.82 0.12 70);
  --chart-5: oklch(0.42 0.14 10);

  --sidebar: oklch(0.185 0.02 20);
  --sidebar-foreground: oklch(0.87 0.014 30);
  --sidebar-accent: oklch(0.27 0.03 22);
  --sidebar-border: oklch(0.28 0.028 22);

  --shell-sidebar-width: 15rem;
  --shell-header-height: 3.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Números em tabelas e KPIs alinham por coluna. */
.tabular {
  font-variant-numeric: tabular-nums;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 999px;
  border: 2px solid var(--background);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
