:root {
  --background: 218 32% 96%;
  --foreground: 225 30% 14%;
  --primary: 191 90% 47%;
  --primary-foreground: 210 40% 98%;
  --primary-soft: 191 90% 92%;
  --secondary: 220 24% 92%;
  --muted: 220 20% 88%;
  --muted-foreground: 224 14% 38%;
  --destructive: 0 84% 60%;
  --border: 220 20% 82%;
  --card: 0 0% 100%;
  --accent: 281 86% 60%;
  --success-soft: 145 62% 90%;
  --success-ink: 151 55% 24%;
  --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 14px 32px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 56px rgba(15, 23, 42, 0.16);
  --transition-fast: 160ms ease;
  --transition-smooth: 320ms cubic-bezier(0.22, 1, 0.36, 1);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
}

.dark {
  --background: 226 38% 8%;
  --foreground: 210 40% 98%;
  --primary: 191 90% 54%;
  --primary-foreground: 222 47% 11%;
  --primary-soft: 191 72% 16%;
  --secondary: 224 28% 14%;
  --muted: 223 24% 18%;
  --muted-foreground: 220 18% 70%;
  --destructive: 0 84% 62%;
  --border: 224 22% 22%;
  --card: 224 30% 11%;
  --accent: 281 86% 66%;
  --success-soft: 151 38% 16%;
  --success-ink: 145 72% 82%;
  --shadow-sm: 0 10px 20px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.34);
  --shadow-lg: 0 26px 64px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html, body, #root {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top right, hsla(191, 90%, 55%, 0.10), transparent 28%),
    radial-gradient(circle at bottom left, hsla(281, 86%, 60%, 0.08), transparent 24%),
    hsl(var(--background));
  color: hsl(var(--foreground));
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: hsl(var(--border));
  border-radius: 999px;
}

.nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.nav-chip:hover {
  transform: translateY(-1px);
}

.nav-chip-active {
  background: hsl(var(--primary-soft));
  border-color: hsl(var(--primary));
}

.btn-primary,
.btn-secondary,
.btn-accent,
.btn-ghost,
.btn-danger {
  width: 100%;
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid hsl(var(--border));
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-accent:hover,
.btn-ghost:hover,
.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  color: hsl(var(--primary-foreground));
  border-color: transparent;
}

.btn-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
}

.btn-accent {
  background: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--primary)));
  color: white;
  border-color: transparent;
}

.btn-ghost {
  background: hsl(var(--card));
  color: hsl(var(--foreground));
}

.btn-danger {
  background: linear-gradient(135deg, hsl(var(--destructive)), hsl(337 87% 58%));
  color: white;
  border-color: transparent;
}

button:disabled {
  cursor: not-allowed;
  transform: none !important;
  box-shadow: var(--shadow-sm) !important;
}
