/* ==========================================================================
   ANIMATIONS.CSS — Keyframes, Transitions & Micro-interactions
   Standardized based on mtips5s_30_VPS3_UX_UI_Design Curriculum
   ========================================================================== */

/* Fade In animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide Up animation */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal animations */
@keyframes modalBackdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Toast animations */
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

/* Pulse Glow */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(36, 161, 222, 0.25);
  }
  50% {
    box-shadow: 0 0 24px rgba(36, 161, 222, 0.55);
  }
}

/* Status Dot Pulse */
@keyframes pulseGreen {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

@keyframes pulseAmber {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
  }
}

/* Shimmer Loading Effect */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Spin animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Utility Animation Classes */
.fade-in {
  animation: fadeIn var(--transition-base) forwards;
}

.slide-up {
  animation: slideUp var(--transition-base) forwards;
}

.glow-pulse {
  animation: pulseGlow 2.5s infinite ease-in-out;
}

.spinner {
  animation: spin 0.7s linear infinite;
}

/* Micro-interactions */
.interactive-scale {
  transition: transform var(--transition-fast);
}

.interactive-scale:active {
  transform: scale(0.96);
}

.interactive-lift {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.interactive-lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
