:root {
  --background: 210 40% 98%;
  --foreground: 224 39% 12%;
  --primary: 223 84% 55%;
  --secondary: 160 55% 42%;
  --muted: 215 25% 92%;
  --destructive: 0 78% 57%;
  --border: 220 22% 85%;
  --card: 0 0% 100%;
  --shadow-sm: 0 1px 2px hsla(224, 39%, 12%, 0.08);
  --shadow-md: 0 10px 24px hsla(224, 39%, 12%, 0.10);
  --shadow-lg: 0 22px 48px hsla(224, 39%, 12%, 0.14);
  --transition-fast: 120ms ease;
  --transition-smooth: 220ms ease;
  --radius-sm: 0.5rem;
  --radius-md: 0.9rem;
  --radius-lg: 1.25rem;
}

.dark {
  --background: 224 32% 10%;
  --foreground: 210 40% 96%;
  --primary: 217 92% 64%;
  --secondary: 160 56% 48%;
  --muted: 224 22% 18%;
  --destructive: 0 74% 60%;
  --border: 224 20% 24%;
  --card: 224 28% 14%;
  --shadow-sm: 0 1px 2px hsla(0, 0%, 0%, 0.30);
  --shadow-md: 0 12px 28px hsla(0, 0%, 0%, 0.34);
  --shadow-lg: 0 24px 56px hsla(0, 0%, 0%, 0.44);
}

* {
  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 left, hsla(223, 84%, 55%, 0.12), transparent 34%),
    radial-gradient(circle at top right, hsla(160, 55%, 42%, 0.12), transparent 30%),
    hsl(var(--background));
  color: hsl(var(--foreground));
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font: inherit;
}

input, select {
  outline: none;
}

input:focus, select:focus, button:focus, a:focus {
  box-shadow: 0 0 0 3px hsla(223, 84%, 55%, 0.18);
}

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

::-webkit-scrollbar-thumb {
  background: hsla(223, 84%, 55%, 0.25);
  border-radius: 999px;
}

.panel-glass {
  background: linear-gradient(180deg, hsla(0, 0%, 100%, 0.86), hsla(0, 0%, 100%, 0.72));
  backdrop-filter: blur(10px);
}

.dark .panel-glass {
  background: linear-gradient(180deg, hsla(224, 28%, 14%, 0.90), hsla(224, 28%, 14%, 0.78));
}

.soft-grid {
  background-image:
    linear-gradient(hsla(220, 20%, 50%, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, hsla(220, 20%, 50%, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}

.fade-in {
  animation: fadeIn 260ms ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
