/* Keyframe Animations */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

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

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

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

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

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes drawCheck {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes scaleOut {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(0.9); opacity: 0; }
}

/* Animation Classes */
.animate-fade-in {
  animation: fadeIn 300ms ease-out;
}

.animate-slide-up {
  animation: slideUp 250ms ease-out;
}

.animate-scale-in {
  animation: scaleIn 200ms ease-out;
}

/* Staggered Animations */
.stagger-fade-in {
  opacity: 0;
  animation: fadeIn 300ms ease-out forwards;
}

.stagger-fade-in:nth-child(1) { animation-delay: 0ms; }
.stagger-fade-in:nth-child(2) { animation-delay: 40ms; }
.stagger-fade-in:nth-child(3) { animation-delay: 80ms; }
.stagger-fade-in:nth-child(4) { animation-delay: 120ms; }
.stagger-fade-in:nth-child(5) { animation-delay: 160ms; }
.stagger-fade-in:nth-child(6) { animation-delay: 200ms; }
.stagger-fade-in:nth-child(7) { animation-delay: 240ms; }
.stagger-fade-in:nth-child(8) { animation-delay: 280ms; }
.stagger-fade-in:nth-child(9) { animation-delay: 320ms; }
.stagger-fade-in:nth-child(10) { animation-delay: 360ms; }

/* Transition Utilities */
.transition-fast {
  transition: all 120ms ease;
}

.transition-normal {
  transition: all 150ms ease;
}

.transition-slow {
  transition: all 250ms ease;
}
