/* ═══════════════════════════════════════════
   ANIMATIONS — animations.css
   ════════════════════════════════════════════ */

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

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(100%); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(100%); }
}

@keyframes expandDown {
  from { opacity: 0; transform: scaleY(0.9); transform-origin: top; }
  to   { opacity: 1; transform: scaleY(1); }
}

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

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

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

/* Staggered list items */
.field-item, .leads-table tbody tr {
  animation: fadeInUp 0.2s ease both;
}
.field-item:nth-child(1)  { animation-delay: 0ms; }
.field-item:nth-child(2)  { animation-delay: 40ms; }
.field-item:nth-child(3)  { animation-delay: 80ms; }
.field-item:nth-child(4)  { animation-delay: 120ms; }
.field-item:nth-child(5)  { animation-delay: 160ms; }
.field-item:nth-child(n+6){ animation-delay: 200ms; }

/* Table row stagger */
.leads-table tbody tr:nth-child(1)  { animation-delay: 0ms; }
.leads-table tbody tr:nth-child(2)  { animation-delay: 30ms; }
.leads-table tbody tr:nth-child(3)  { animation-delay: 60ms; }
.leads-table tbody tr:nth-child(4)  { animation-delay: 90ms; }
.leads-table tbody tr:nth-child(5)  { animation-delay: 120ms; }
.leads-table tbody tr:nth-child(6)  { animation-delay: 150ms; }
.leads-table tbody tr:nth-child(7)  { animation-delay: 180ms; }
.leads-table tbody tr:nth-child(8)  { animation-delay: 210ms; }
.leads-table tbody tr:nth-child(9)  { animation-delay: 240ms; }
.leads-table tbody tr:nth-child(10) { animation-delay: 270ms; }
.leads-table tbody tr:nth-child(n+11){ animation-delay: 300ms; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
