:root {
  --background: 210 40% 98%;
  --foreground: 222 30% 14%;
  --primary: 194 83% 36%;
  --secondary: 155 48% 42%;
  --muted: 210 24% 92%;
  --destructive: 0 78% 56%;
  --border: 214 24% 84%;
  --card: 0 0% 100%;
  --shadow-sm: 0 8px 24px hsla(212, 35%, 18%, 0.08);
  --shadow-md: 0 16px 40px hsla(212, 35%, 18%, 0.12);
  --shadow-lg: 0 24px 60px hsla(212, 35%, 18%, 0.18);
  --transition-fast: 140ms ease;
  --transition-smooth: 240ms ease;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

.dark {
  --background: 222 30% 10%;
  --foreground: 210 40% 96%;
  --primary: 191 88% 56%;
  --secondary: 155 56% 52%;
  --muted: 218 20% 18%;
  --destructive: 0 75% 62%;
  --border: 217 18% 24%;
  --card: 222 28% 14%;
  --shadow-sm: 0 8px 24px hsla(0, 0%, 0%, 0.24);
  --shadow-md: 0 16px 40px hsla(0, 0%, 0%, 0.32);
  --shadow-lg: 0 24px 60px hsla(0, 0%, 0%, 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:
    radial-gradient(circle at top left, hsla(194, 83%, 36%, 0.14), transparent 28%),
    radial-gradient(circle at top right, hsla(155, 48%, 42%, 0.12), transparent 22%),
    hsl(var(--background));
  color: hsl(var(--foreground));
  transition: background var(--transition-smooth), color var(--transition-smooth);
}

#root {
  min-height: 100vh;
}

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

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

button {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

button:active {
  transform: translateY(1px) scale(0.99);
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid hsla(194, 83%, 36%, 0.35);
  outline-offset: 2px;
}

.glass {
  background: hsla(0, 0%, 100%, 0.7);
  backdrop-filter: blur(12px);
}

.dark .glass {
  background: hsla(222, 28%, 14%, 0.78);
}

.card-lift {
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.card-lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.status-pulse {
  position: relative;
}

.status-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid hsla(155, 48%, 42%, 0.22);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.9; }
  70% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1.15); opacity: 0; }
}

.skeleton {
  background: linear-gradient(90deg, hsla(210, 24%, 92%, 0.5), hsla(210, 24%, 86%, 0.9), hsla(210, 24%, 92%, 0.5));
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}

.dark .skeleton {
  background: linear-gradient(90deg, hsla(218, 20%, 18%, 0.6), hsla(218, 20%, 24%, 0.95), hsla(218, 20%, 18%, 0.6));
  background-size: 200% 100%;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}