@import "tailwindcss";

@theme inline {
  --color-background: hsl(var(--background));
  --color-foreground: hsl(var(--foreground));
  --color-card: hsl(var(--card));
  --color-card-foreground: hsl(var(--card-foreground));
  --color-popover: hsl(var(--popover));
  --color-popover-foreground: hsl(var(--popover-foreground));
  --color-primary: hsl(var(--primary));
  --color-primary-foreground: hsl(var(--primary-foreground));
  --color-secondary: hsl(var(--secondary));
  --color-secondary-foreground: hsl(var(--secondary-foreground));
  --color-muted: hsl(var(--muted));
  --color-muted-foreground: hsl(var(--muted-foreground));
  --color-accent: hsl(var(--accent));
  --color-accent-foreground: hsl(var(--accent-foreground));
  --color-destructive: hsl(var(--destructive));
  --color-destructive-foreground: hsl(var(--destructive-foreground));
  --color-border: hsl(var(--border));
  --color-input: hsl(var(--input));
  --color-ring: hsl(var(--ring));
  --color-success: hsl(var(--success));
  --color-warning: hsl(var(--warning));
  --color-sidebar: hsl(var(--sidebar));
  --color-sidebar-foreground: hsl(var(--sidebar-foreground));
  --color-sidebar-muted: hsl(var(--sidebar-muted));
  --color-sidebar-border: hsl(var(--sidebar-border));
  --color-sidebar-accent: hsl(var(--sidebar-accent));
  --color-sidebar-accent-foreground: hsl(var(--sidebar-accent-foreground));
  --color-sidebar-panel: hsl(var(--sidebar-panel));
  --radius-md: 0.5rem;
}

:root {
  color-scheme: light;
  --background: 210 24% 98%;
  --foreground: 210 26% 10%;
  --card: 0 0% 100%;
  --card-foreground: 210 26% 10%;
  --popover: 0 0% 100%;
  --popover-foreground: 210 26% 10%;
  --primary: 174 62% 32%;
  --primary-foreground: 180 100% 98%;
  --secondary: 210 18% 91%;
  --secondary-foreground: 210 26% 14%;
  --muted: 210 20% 94%;
  --muted-foreground: 210 14% 36%;
  --accent: 178 28% 88%;
  --accent-foreground: 178 52% 18%;
  --destructive: 0 72% 43%;
  --destructive-foreground: 0 0% 100%;
  --border: 210 18% 84%;
  --input: 210 18% 79%;
  --ring: 174 62% 35%;
  --success: 156 72% 27%;
  --warning: 36 85% 34%;
  --sidebar: 210 25% 96%;
  --sidebar-foreground: 210 26% 10%;
  --sidebar-muted: 210 14% 34%;
  --sidebar-border: 210 18% 82%;
  --sidebar-accent: 178 36% 87%;
  --sidebar-accent-foreground: 178 55% 17%;
  --sidebar-panel: 210 22% 92%;
}

[data-theme="dark"] {
  color-scheme: dark;
  --background: 200 41% 4%;
  --foreground: 203 36% 94%;
  --card: 201 33% 7%;
  --card-foreground: 203 36% 94%;
  --popover: 201 33% 7%;
  --popover-foreground: 203 36% 94%;
  --primary: 174 69% 43%;
  --primary-foreground: 188 58% 7%;
  --secondary: 203 30% 14%;
  --secondary-foreground: 203 36% 94%;
  --muted: 201 25% 12%;
  --muted-foreground: 205 18% 70%;
  --accent: 191 32% 16%;
  --accent-foreground: 176 52% 79%;
  --destructive: 2 78% 62%;
  --destructive-foreground: 0 0% 100%;
  --border: 202 28% 19%;
  --input: 202 28% 23%;
  --ring: 174 69% 43%;
  --success: 153 69% 51%;
  --warning: 38 89% 58%;
  --sidebar: 199 43% 6%;
  --sidebar-foreground: 203 36% 94%;
  --sidebar-muted: 205 18% 70%;
  --sidebar-border: 202 28% 17%;
  --sidebar-accent: 191 36% 14%;
  --sidebar-accent-foreground: 176 56% 80%;
  --sidebar-panel: 199 36% 9%;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  min-width: 320px;
  min-height: 100vh;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: hsl(var(--background));
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

svg {
  width: 1rem;
  height: 1rem;
}

.dashboard-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  color: hsl(var(--sidebar-muted));
  font-size: 0.875rem;
  font-weight: 500;
  outline: none;
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.dashboard-nav-link:hover {
  background: color-mix(in oklab, hsl(var(--sidebar-accent)) 60%, transparent);
  color: hsl(var(--sidebar-foreground));
}

.dashboard-nav-link:focus-visible {
  box-shadow: 0 0 0 2px hsl(var(--ring));
}

.dashboard-nav-link-active,
.dashboard-nav-link-active:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.14);
}
