:root {
  --background: 210 33% 98%;
  --foreground: 220 29% 14%;
  --primary: 198 82% 42%;
  --secondary: 160 58% 38%;
  --muted: 210 24% 92%;
  --destructive: 0 76% 54%;
  --border: 214 23% 86%;
  --card: 0 0% 100%;

  --shadow-sm: 0 8px 24px hsla(210, 45%, 20%, 0.06);
  --shadow-md: 0 14px 40px hsla(210, 45%, 18%, 0.1);
  --shadow-lg: 0 24px 60px hsla(210, 45%, 18%, 0.16);

  --transition-fast: 120ms ease;
  --transition-smooth: 220ms cubic-bezier(0.22, 1, 0.36, 1);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

.dark {
  --background: 222 36% 9%;
  --foreground: 210 20% 94%;
  --primary: 194 82% 58%;
  --secondary: 158 61% 52%;
  --muted: 220 24% 17%;
  --destructive: 0 82% 64%;
  --border: 217 18% 24%;
  --card: 222 30% 12%;

  --shadow-sm: 0 8px 24px hsla(220, 60%, 2%, 0.28);
  --shadow-md: 0 14px 40px hsla(220, 60%, 2%, 0.34);
  --shadow-lg: 0 24px 60px hsla(220, 60%, 2%, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

button,
a,
input,
select {
  transition: all var(--transition-fast);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

::selection {
  background: hsl(var(--primary) / 0.22);
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: opacity(0.7);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
