/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

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

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

/* Animation for New Components */
@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Success Animation */
@keyframes checkmark {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Loading Animation */
.condition-validation.loading {
  animation: pulse 2s infinite;
}

/* Success Animation */
.condition-validation.success svg {
  animation: checkmark 0.6s ease-out;
}

.component-row {
  animation: slideInFromRight 0.4s ease-out;
}

/* ── Respect OS-level "reduce motion" preference ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .condition-validation.loading,
  .condition-validation.success svg,
  .component-row {
    animation: none;
  }
}