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

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

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

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

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

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

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3); }
  50% { box-shadow: 0 4px 24px rgba(217, 119, 6, 0.5); }
}

@keyframes ripple {
  to { width: 300px; height: 300px; opacity: 0; }
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

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

.animate-fade-in { opacity: 0; animation: fadeIn 0.5s ease forwards; }
.animate-fade-in-up { opacity: 0; animation: fadeInUp 0.6s ease forwards; }
.animate-slide-down { animation: slideDown 0.4s ease; }
.animate-slide-up { animation: slideUp 0.4s ease; }
.animate-scale-in { animation: scaleIn 0.3s ease; }

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.btn-ripple { position: relative; overflow: hidden; }
.btn-ripple::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
}

.btn-ripple:active::after {
  animation: ripple 0.6s ease-out;
}

.btn.loading { pointer-events: none; opacity: 0.7; }
.btn.loading .btn-text { opacity: 0; }
.btn.loading .spinner-border { display: inline-block !important; }
.spinner-border { animation: spin 0.75s linear infinite; }

.skeleton {
  background: linear-gradient(90deg, #F5F5F4 25%, #E7E5E4 50%, #F5F5F4 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s ease-in-out infinite;
  border-radius: 8px;
}

.form-control:focus, .form-select:focus {
  animation: focusFade 0.3s ease;
}

@keyframes focusFade {
  0% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(217, 119, 6, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

.tab-pane { animation: tabFadeIn 0.3s ease; }

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.alert { animation: slideDown 0.4s ease; }
.alert.fade-out { animation: fadeOut 0.3s ease forwards; }

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

.navbar-toggler:focus { box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.3); }

.progress-bar { transition: width 0.6s ease; }

.modal.fade .modal-dialog { transform: scale(0.95); transition: transform 0.3s ease; }
.modal.show .modal-dialog { transform: scale(1); }

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