:root {
  --background: 210 20% 98%;
  --foreground: 210 20% 10%;
  --card: 0 0% 100%;
  --card-foreground: 210 20% 10%;
  --primary: 199 89% 48%;
  --primary-foreground: 0 0% 100%;
  --secondary: 210 20% 96%;
  --secondary-foreground: 210 20% 10%;
  --muted: 210 20% 96%;
  --muted-foreground: 210 10% 45%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 210 15% 90%;
  --input: 210 15% 90%;
  --ring: 199 89% 48%;
  --radius: 0.625rem;
}

.dark {
  --background: 210 20% 5%;
  --foreground: 210 10% 95%;
  --card: 210 20% 8%;
  --card-foreground: 210 10% 95%;
  --primary: 199 89% 55%;
  --primary-foreground: 0 0% 100%;
  --secondary: 210 15% 12%;
  --secondary-foreground: 210 10% 95%;
  --muted: 210 15% 12%;
  --muted-foreground: 210 10% 60%;
  --destructive: 0 62.8% 50.6%;
  --destructive-foreground: 0 0% 98%;
  --border: 210 12% 18%;
  --input: 210 12% 18%;
  --ring: 199 89% 55%;
}

* { border-color: hsl(var(--border)); }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 0.5rem; background-color: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  padding: 0.625rem 1rem; font-size: 0.875rem; font-weight: 500; transition: all 0.15s;
}
.btn-primary:hover { opacity: 0.8; }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 0.5rem; border: 1px solid hsl(var(--border)); background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground)); padding: 0.625rem 1rem; font-size: 0.875rem; font-weight: 500; transition: all 0.15s;
}
.btn-secondary:hover { opacity: 0.8; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 0.5rem; border: 1px solid hsl(var(--border)); background-color: hsl(var(--background));
  color: hsl(var(--foreground)); padding: 0.625rem 1rem; font-size: 0.875rem; font-weight: 500; transition: all 0.15s;
}
.btn-outline:hover { background-color: hsl(var(--muted)); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 0.5rem; padding: 0.625rem 1rem; font-size: 0.875rem; font-weight: 500; transition: all 0.15s;
}
.btn-ghost:hover { background-color: hsl(var(--muted)); color: hsl(var(--foreground)); }
.btn-destructive {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 0.5rem; background-color: hsl(var(--destructive) / 0.1); color: hsl(var(--destructive));
  padding: 0.625rem 1rem; font-size: 0.875rem; font-weight: 500; transition: all 0.15s;
}
.btn-destructive:hover { background-color: hsl(var(--destructive) / 0.2); }

/* Input */
.input {
  display: flex; width: 100%; border-radius: 0.5rem; border: 1px solid hsl(var(--input));
  background-color: hsl(var(--background)); padding: 0.5rem 0.75rem; font-size: 0.875rem;
  color: hsl(var(--foreground)); transition: all 0.15s; outline: none;
}
.input::placeholder { color: hsl(var(--muted-foreground)); }
.input:focus { border-color: hsl(var(--ring)); box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2); }

/* Card */
.card {
  display: flex; flex-direction: column; gap: 1rem; overflow: hidden;
  border-radius: 0.75rem; background-color: hsl(var(--card)); padding: 1rem;
  font-size: 0.875rem; color: hsl(var(--card-foreground));
  box-shadow: 0 0 0 1px hsl(var(--foreground) / 0.1);
}

/* Badge */
.badge {
  display: inline-flex; align-items: center; border-radius: 0.375rem;
  border: 1px solid transparent; background-color: hsl(var(--secondary));
  padding: 0.125rem 0.5rem; font-size: 0.75rem; font-weight: 500;
  color: hsl(var(--secondary-foreground));
}

/* Animations */
.animate-fade-in { animation: fadeIn 0.5s ease-out forwards; opacity: 0; }
.animate-slide-up { animation: slideUp 0.5s ease-out forwards; opacity: 0; transform: translateY(20px); }
.animate-scale-in { animation: scaleIn 0.4s ease-out forwards; opacity: 0; transform: scale(0.95); }
.animate-slide-in-left { animation: slideInLeft 0.4s ease-out forwards; opacity: 0; transform: translateX(-20px); }
.animate-slide-in-right { animation: slideInRight 0.4s ease-out forwards; opacity: 0; transform: translateX(20px); }

.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }
.stagger-7 { animation-delay: 0.35s; }
.stagger-8 { animation-delay: 0.4s; }

.hover-lift { transition: all 0.3s; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 12px 24px -8px hsl(0 0% 0% / 0.15); }

/* Mobile menu - handled by Tailwind inline */

/* Table responsive */
.table-responsive { overflow-x: auto; margin-left: -1rem; margin-right: -1rem; padding-left: 1rem; padding-right: 1rem; }
.table-responsive table { width: 100%; min-width: 640px; }

@keyframes fadeIn { to { opacity: 1; } }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { to { opacity: 1; transform: scale(1); } }
@keyframes slideInLeft { to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { to { opacity: 1; transform: translateX(0); } }
