/* Slide-in Animation */
@keyframes slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.animate-slide-in {
  animation: slide-in 0.3s ease-out;
}

/* Fade-out Animation */
@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.animate-fade-out {
  animation: fade-out 0.3s ease-out;
}

/* Fade-in Animation */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fade-in 0.5s ease-in;
}

/* Pulse Animation */
@keyframes pulse-custom {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse-custom {
  animation: pulse-custom 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Spin Animation */
@keyframes spin-custom {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin-custom {
  animation: spin-custom 1s linear infinite;
}

/* Bounce Animation */
@keyframes bounce-custom {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-bounce-custom {
  animation: bounce-custom 1s infinite;
}

/* Shake Animation */
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

.animate-shake {
  animation: shake 0.5s;
}

/* Scale Animation */
@keyframes scale-in {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-scale-in {
  animation: scale-in 0.3s ease-out;
}

/* Loading Skeleton */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.animate-shimmer {
  background: linear-gradient(to right, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Transitions */
.transition-all {
  transition: all 0.3s ease-in-out;
}

.transition-smooth {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button States */
.btn-loading {
  opacity: 0.6;
  pointer-events: none;
}

.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Form States */
.form-input-focus {
  @apply ring-2 ring-blue-500 ring-offset-2;
}

.form-error {
  @apply border-red-500 focus:ring-red-500;
}

.form-success {
  @apply border-green-500 focus:ring-green-500;
}

/* Badge Animations */
.badge-new {
  @apply relative;
}

.badge-new::after {
  content: '';
  @apply absolute inset-0 bg-red-500 rounded-full animate-ping opacity-75;
}

/* Hover Effects */
.hover-lift {
  @apply transition-transform duration-300 hover:-translate-y-1;
}

.hover-shadow {
  @apply transition-shadow duration-300 hover:shadow-xl;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .animate-shimmer {
    background: linear-gradient(to right, #333 0%, #222 50%, #333 100%);
    background-size: 1000px 100%;
  }
}
