/* Shadcn dark theme (zinc base) with the mbodi brand pink (#EC4869 from the
 * logo) as primary/ring. The dashboard and console are dark-only, so the
 * default-dark values live on :root. Only the functional process/status
 * colors (live/stale/down) are added on top of the standard palette. */
:root {
  --brand: 348 81% 60%; /* #EC4869 — mbodi logo pink */

  --background: 240 10% 3.9%;
  --foreground: 0 0% 98%;

  --card: 240 10% 3.9%;
  --card-foreground: 0 0% 98%;

  --popover: 240 10% 3.9%;
  --popover-foreground: 0 0% 98%;

  --primary: var(--brand);
  --primary-foreground: 355 100% 97%;

  --secondary: 240 3.7% 15.9%;
  --secondary-foreground: 0 0% 98%;

  --muted: 240 3.7% 15.9%;
  --muted-foreground: 240 5% 64.9%;

  --accent: 240 3.7% 15.9%;
  --accent-foreground: 0 0% 98%;

  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 0 0% 98%;

  --border: 240 3.7% 15.9%;
  --input: 240 3.7% 15.9%;
  --ring: var(--brand);

  --radius: 0.5rem;

  /* Process / data status (System health, connection pills, stability). */
  --live: 142 71% 45%;
  --stale: 38 92% 50%;
  --down: 0 72% 51%;

  /* Sidebar (stock shadcn dark + brand primary). */
  --sidebar-background: 240 5.9% 10%;
  --sidebar-foreground: 240 4.8% 95.9%;
  --sidebar-primary: var(--brand);
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 240 3.7% 15.9%;
  --sidebar-accent-foreground: 240 4.8% 95.9%;
  --sidebar-border: 240 3.7% 15.9%;
  --sidebar-ring: var(--brand);
}

html,
body,
#root {
  height: 100%;
}

body {
  margin: 0;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Minimal scrollbars everywhere (native overflow containers included), matching
 * the thin overlay style of the Radix ScrollArea used on data-heavy panes. */
* {
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: hsl(var(--border)) transparent;
}
*::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: hsl(var(--border));
  border-radius: 9999px;
}
*::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--muted-foreground) / 0.4);
}
*::-webkit-scrollbar-corner {
  background: transparent;
}
