@import "tailwindcss";
@import "tw-animate-css";
@import "@fontsource-variable/bricolage-grotesque";
@import "@fontsource-variable/geist";

@custom-variant dark (&:is(.dark *));

:root {
  --background: #edf2ef;
  --foreground: #14211f;
  --card: #f9fbf9;
  --card-foreground: #14211f;
  --popover: #f9fbf9;
  --popover-foreground: #14211f;
  --primary: #1858d1;
  --primary-foreground: #fff;
  --secondary: #dbe7ff;
  --secondary-foreground: #14211f;
  --muted: #e2ebe7;
  --muted-foreground: #53635e;
  --accent: #ffe2d1;
  --accent-foreground: #7f3418;
  --destructive: #b42318;
  --destructive-foreground: #fff;
  --border: #cbd8d3;
  --input: #cbd8d3;
  --ring: #e86d32;
  --chart-1: #1858d1;
  --chart-2: #2f8f75;
  --chart-3: #e86d32;
  --chart-4: #b8871f;
  --chart-5: #9157c4;
  --radius: 0.5rem;
  --sidebar: #f9fbf9;
  --sidebar-foreground: #14211f;
  --sidebar-primary: #1858d1;
  --sidebar-primary-foreground: #fff;
  --sidebar-accent: #ffe2d1;
  --sidebar-accent-foreground: #7f3418;
  --sidebar-border: #cbd8d3;
  --sidebar-ring: #e86d32;
}

.dark {
  --background: #0e1a28;
  --foreground: #dce9f4;
  --card: #142436;
  --card-foreground: #dce9f4;
  --popover: #142436;
  --popover-foreground: #dce9f4;
  --primary: #66a2ff;
  --primary-foreground: #0e1a28;
  --secondary: #1d3042;
  --secondary-foreground: #dce9f4;
  --muted: #1d3042;
  --muted-foreground: #8ea4b8;
  --accent: #4b2a1d;
  --accent-foreground: #ffb185;
  --destructive: #f87171;
  --destructive-foreground: #2b0d0a;
  --border: #2d455c;
  --input: #2d455c;
  --ring: #ffb185;
  --chart-1: #66a2ff;
  --chart-2: #69c3a4;
  --chart-3: #ffb185;
  --chart-4: #f2c66d;
  --chart-5: #c29dff;
  --sidebar: #142436;
  --sidebar-foreground: #dce9f4;
  --sidebar-primary: #66a2ff;
  --sidebar-primary-foreground: #0e1a28;
  --sidebar-accent: #4b2a1d;
  --sidebar-accent-foreground: #ffb185;
  --sidebar-border: #2d455c;
  --sidebar-ring: #ffb185;
}

@theme inline {
  --font-sans: "Geist Variable", Geist, sans-serif;
  --font-heading: "Bricolage Grotesque Variable", "Bricolage Grotesque", var(--font-sans);
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);
  --radius-sm: calc(var(--radius) - 2px);
  --radius-md: calc(var(--radius) - 1px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 1px);
  --radius-2xl: calc(var(--radius) + 2px);
  --radius-3xl: calc(var(--radius) + 3px);
  --radius-4xl: calc(var(--radius) + 4px);
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }
  body {
    @apply bg-background text-foreground;
  }
  html {
    @apply font-sans;
  }
}

@layer utilities {
  .scrollbar {
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
  }
  .scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  .scrollbar::-webkit-scrollbar-track {
    background: transparent;
  }
  .scrollbar::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: var(--radius-3xl);
  }
  .scrollbar:hover::-webkit-scrollbar-thumb {
    background-color: var(--muted-foreground);
  }

  .scrollbar-padded-x::-webkit-scrollbar {
    width: 16px;
  }
  .scrollbar-padded-x::-webkit-scrollbar-thumb {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    background-clip: padding-box;
  }

  .scrollbar-padded-y::-webkit-scrollbar {
    height: 16px;
  }
  .scrollbar-padded-y::-webkit-scrollbar-thumb {
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    background-clip: padding-box;
  }
}
