@import "tailwindcss";

@variant dark (&:where(.dark, .dark *));

:root {
  --background: #ffffff;
  --foreground: #171717;
}

.dark {
  --background: #0a0a0a;
  --foreground: #ededed;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --font-sans: var(--font-geist-sans);
  --font-mono: var(--font-geist-mono);
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}

/* ── Animation Keyframes ─────────────────────────────────── */

@keyframes checkmark-draw {
  0% { stroke-dashoffset: 24; }
  100% { stroke-dashoffset: 0; }
}

@keyframes step-complete-pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes slide-out-left {
  0% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(-120%); opacity: 0; }
}

@keyframes slide-in-right {
  0% { transform: translateX(80%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes slide-out-right {
  0% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

@keyframes progress-fill {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

@keyframes progress-glow {
  0% { box-shadow: 0 0 4px rgba(99, 102, 241, 0.4); }
  50% { box-shadow: 0 0 12px rgba(99, 102, 241, 0.8); }
  100% { box-shadow: 0 0 4px rgba(99, 102, 241, 0.4); }
}

@keyframes celebration-scale {
  0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fade-in-up {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes gentle-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes green-glow {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { box-shadow: 0 0 20px 4px rgba(34, 197, 94, 0.3); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Utility animation classes */
.animate-checkmark-draw {
  animation: checkmark-draw 0.4s ease-out forwards;
}
.animate-step-complete {
  animation: step-complete-pulse 0.3s ease-out;
}
.animate-slide-out-left {
  animation: slide-out-left 0.25s ease-in forwards;
}
.animate-slide-in-right {
  animation: slide-in-right 0.3s ease-out forwards;
}
.animate-slide-out-right {
  animation: slide-out-right 0.25s ease-in forwards;
}
.animate-celebration-scale {
  animation: celebration-scale 0.5s ease-out forwards;
}
.animate-fade-in-up {
  animation: fade-in-up 0.4s ease-out forwards;
}
.animate-gentle-pulse {
  animation: gentle-pulse 2s ease-in-out infinite;
}
.animate-green-glow {
  animation: green-glow 0.5s ease-out;
}
.animate-progress-glow {
  animation: progress-glow 0.6s ease-out;
}
