/* Tema do Integrador Tributário - OKLCH
 * Baseado no tema padrão do shadcn/ui, com as cores do logo:
 * violeta #6D28D9 (hub), #8B5CF6 (linhas) e #A78BFA (nós).
 * Os neutros levam um leve tom violeta (matiz ~288) para conversar com a tela de login.
 */

:root {
  --background: oklch(0.99 0.004 290);
  --foreground: oklch(0.2 0.03 285);

  --card: oklch(1 0 0);
  --card-foreground: oklch(0.2 0.03 285);

  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.2 0.03 285);

  --primary: oklch(0.491 0.241 292.6);
  --primary-foreground: oklch(0.985 0.01 290);

  --secondary: oklch(0.96 0.015 290);
  --secondary-foreground: oklch(0.3 0.08 290);

  --muted: oklch(0.965 0.01 290);
  --muted-foreground: oklch(0.52 0.03 285);

  --accent: oklch(0.95 0.025 292);
  --accent-foreground: oklch(0.35 0.12 292);

  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(1 0 0);

  --border: oklch(0.91 0.015 290);
  --input: oklch(0.91 0.015 290);
  --ring: oklch(0.606 0.219 292.7);

  --radius: 0.5rem;

  --chart-1: oklch(0.49 0.24 293);
  --chart-2: oklch(0.61 0.22 293);
  --chart-3: oklch(0.7 0.18 294);
  --chart-4: oklch(0.6 0.15 200);
  --chart-5: oklch(0.72 0.16 75);

  /* Sidebar variables */
  --sidebar-background: oklch(0.975 0.008 290);
  --sidebar-foreground: oklch(0.2 0.03 285);
  --sidebar-primary: oklch(0.491 0.241 292.6);
  --sidebar-primary-foreground: oklch(0.985 0.01 290);
  --sidebar-accent: oklch(0.95 0.025 292);
  --sidebar-accent-foreground: oklch(0.35 0.12 292);
  --sidebar-border: oklch(0.91 0.015 290);
  --sidebar-ring: oklch(0.606 0.219 292.7);

  /* Alert colors */
  --alert-success: oklch(0.55 0.20 142);
  --alert-success-foreground: oklch(0.30 0.09 142);
  --alert-success-bg: oklch(0.993 0.003 142);
  --alert-info: oklch(0.50 0.20 255);
  --alert-info-foreground: oklch(0.30 0.10 255);
  --alert-info-bg: oklch(0.993 0.003 255);
  --alert-warning: oklch(0.68 0.18 55);
  --alert-warning-foreground: oklch(0.35 0.10 55);
  --alert-warning-bg: oklch(0.995 0.003 55);
  --alert-danger: oklch(0.55 0.22 27);
  --alert-danger-foreground: oklch(0.30 0.12 27);
  --alert-danger-bg: oklch(0.993 0.003 27);
}

.dark {
  --background: oklch(0.215 0.028 285);
  --foreground: oklch(0.97 0.01 290);

  --card: oklch(0.25 0.032 286);
  --card-foreground: oklch(0.97 0.01 290);

  --popover: oklch(0.26 0.032 286);
  --popover-foreground: oklch(0.97 0.01 290);

  --primary: oklch(0.58 0.22 292.7);
  --primary-foreground: oklch(0.99 0.005 290);

  --secondary: oklch(0.3 0.035 287);
  --secondary-foreground: oklch(0.97 0.01 290);

  --muted: oklch(0.29 0.032 287);
  --muted-foreground: oklch(0.76 0.03 290);

  --accent: oklch(0.32 0.045 289);
  --accent-foreground: oklch(0.97 0.01 290);

  --destructive: oklch(0.396 0.141 25.723);
  --destructive-foreground: oklch(0.985 0 0);

  --border: oklch(0.34 0.035 287);
  --input: oklch(0.36 0.035 287);
  --ring: oklch(0.702 0.183 293.5);

  --chart-1: oklch(0.61 0.22 293);
  --chart-2: oklch(0.7 0.18 294);
  --chart-3: oklch(0.8 0.12 294);
  --chart-4: oklch(0.7 0.13 200);
  --chart-5: oklch(0.78 0.15 75);

  /* Sidebar variables */
  --sidebar-background: oklch(0.235 0.03 286);
  --sidebar-foreground: oklch(0.97 0.01 290);
  --sidebar-primary: oklch(0.58 0.22 292.7);
  --sidebar-primary-foreground: oklch(0.99 0.005 290);
  --sidebar-accent: oklch(0.32 0.045 289);
  --sidebar-accent-foreground: oklch(0.97 0.01 290);
  --sidebar-border: oklch(0.34 0.035 287);
  --sidebar-ring: oklch(0.702 0.183 293.5);

  /* Alert colors */
  --alert-success: oklch(0.60 0.18 142);
  --alert-success-foreground: oklch(0.90 0.06 142);
  --alert-success-bg: oklch(0.24 0.02 142);
  --alert-info: oklch(0.55 0.18 255);
  --alert-info-foreground: oklch(0.90 0.05 255);
  --alert-info-bg: oklch(0.24 0.02 255);
  --alert-warning: oklch(0.65 0.16 55);
  --alert-warning-foreground: oklch(0.92 0.06 55);
  --alert-warning-bg: oklch(0.25 0.02 55);
  --alert-danger: oklch(0.55 0.20 27);
  --alert-danger-foreground: oklch(0.90 0.06 27);
  --alert-danger-bg: oklch(0.24 0.02 27);
}
