:root {
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --background: 220 30% 98%;
  --foreground: 224 28% 12%;
  --card: 0 0% 100%;
  --card-foreground: 224 28% 12%;
  --popover: 0 0% 100%;
  --popover-foreground: 224 28% 12%;
  --primary: 221 83% 53%;
  --primary-foreground: 0 0% 100%;
  --secondary: 216 34% 94%;
  --secondary-foreground: 224 28% 16%;
  --muted: 218 27% 92%;
  --muted-foreground: 220 12% 39%;
  --accent: 174 64% 42%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 72% 51%;
  --destructive-foreground: 0 0% 100%;
  --success: 142 72% 35%;
  --success-foreground: 0 0% 100%;
  --warning: 38 92% 45%;
  --warning-foreground: 224 28% 12%;
  --info: 199 89% 48%;
  --info-foreground: 0 0% 100%;
  --border: 216 22% 84%;
  --input: 216 22% 84%;
  --ring: 221 83% 53%;
  --radius: 0.625rem;
  --shadow-sm: 0 1px 2px hsl(var(--foreground) / 0.05);
  --shadow-md: 0 4px 12px hsl(var(--foreground) / 0.08);
  --shadow-lg: 0 12px 32px hsl(var(--foreground) / 0.12);
  --shadow-elegant: 0 18px 48px hsl(var(--primary) / 0.22);
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.dark {
  --background: 224 32% 8%;
  --foreground: 214 32% 93%;
  --card: 224 28% 12%;
  --card-foreground: 214 32% 93%;
  --popover: 224 28% 12%;
  --popover-foreground: 214 32% 93%;
  --primary: 217 91% 60%;
  --primary-foreground: 224 32% 8%;
  --secondary: 222 24% 18%;
  --secondary-foreground: 214 32% 93%;
  --muted: 222 24% 18%;
  --muted-foreground: 218 18% 68%;
  --accent: 174 72% 43%;
  --accent-foreground: 224 32% 8%;
  --destructive: 0 72% 58%;
  --destructive-foreground: 0 0% 100%;
  --success: 142 70% 45%;
  --success-foreground: 224 32% 8%;
  --warning: 38 92% 55%;
  --warning-foreground: 224 32% 8%;
  --info: 199 89% 58%;
  --info-foreground: 224 32% 8%;
  --border: 222 20% 24%;
  --input: 222 20% 24%;
  --ring: 217 91% 60%;
}

* {
  box-sizing: border-box;
}

html {
  font-family: var(--font-sans);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

body {
  margin: 0;
  min-height: 100vh;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

button, input, select, textarea {
  font: inherit;
}

input, select, textarea {
  font-size: max(16px, 1rem);
}

button {
  min-height: 44px;
}

:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.safe-bottom {
  padding-bottom: env(safe-area-inset-bottom);
}

.safe-top {
  padding-top: env(safe-area-inset-top);
}