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

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

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

.card {
  animation: fadeIn 0.3s ease-out;
}

.stat-card {
  animation: fadeIn 0.4s ease-out;
  animation-fill-mode: both;
}

.stat-card:nth-child(1) {
  animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
  animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
  animation-delay: 0.3s;
}

.stat-card:nth-child(4) {
  animation-delay: 0.4s;
}

tbody tr {
  animation: slideIn 0.3s ease-out;
}

.btn {
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:active {
  transform: translateY(0);
}

input:focus,
select:focus,
textarea:focus {
  animation: pulse 0.3s ease-in-out;
}

.field-error {
  animation: slideIn 0.2s ease-out;
}

mark {
  animation: fadeIn 0.2s ease-out;
}

.trend-bar {
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.budget-bar {
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.3s ease;
}

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