/*
 * @aisquare/ui — shadcn-extras
 *
 * These are the CSS custom properties shadcn v4 expects but
 * @aisquare/pretty's tokens.template.css does NOT ship. Import this
 * file in your app's global CSS only if you use <Sidebar/>, <Chart/>,
 * or any other primitive that reads these vars. Everything else in
 * @aisquare/ui reads the same vars pretty already defines.
 *
 * Drop into your app:
 *   @import "@aisquare/pretty/tokens.template.css";
 *   @import "@aisquare/ui/tokens/shadcn-extras.css";
 *
 * Values are HSL triplets (no commas) — same convention as pretty.
 * They were translated from new-york-v4's OKLCH neutral theme and
 * retinted to harmonize with pretty's navy `--primary` (213 80% 13%)
 * and blue `--accent` (213 100% 56%). Override any of them per-app to
 * retint sidebar / chart surfaces.
 */

@layer base {
  :root {
    /* Sidebar surface — a sibling of --card with its own typography
       scale. Defaults match pretty's card surface so an unstyled
       sidebar reads as part of the chrome, not a brand surface. */
    --sidebar: 0 0% 100%;
    --sidebar-foreground: 213 80% 13%;
    --sidebar-primary: 213 80% 13%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 210 40% 96%;
    --sidebar-accent-foreground: 213 80% 13%;
    --sidebar-border: 214 32% 91%;
    --sidebar-ring: 213 100% 56%;

    /* Chart palette — 5 distinguishable hues that read well at small
       sizes (sparklines, legend dots). Hues are spaced ~72° apart
       starting from --accent (213). Saturations are pulled down a
       touch so they don't fight the brand blue when adjacent. */
    --chart-1: 213 80% 55%; /* blue — sibling of --accent */
    --chart-2: 158 64% 42%; /* teal-green */
    --chart-3: 33 90% 55%; /* warm amber */
    --chart-4: 285 60% 55%; /* violet */
    --chart-5: 350 75% 58%; /* coral red */
  }

  .dark {
    --sidebar: 213 80% 9%;
    --sidebar-foreground: 0 0% 100%;
    --sidebar-primary: 0 0% 100%;
    --sidebar-primary-foreground: 213 80% 13%;
    --sidebar-accent: 213 50% 15%;
    --sidebar-accent-foreground: 0 0% 100%;
    --sidebar-border: 213 50% 18%;
    --sidebar-ring: 213 100% 56%;

    --chart-1: 213 80% 65%;
    --chart-2: 158 60% 55%;
    --chart-3: 33 85% 65%;
    --chart-4: 285 55% 68%;
    --chart-5: 350 70% 68%;
  }
}
