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

@keyframes toastEnter {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.page-content {
  animation: pageEnter 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.card-grid > .card {
  animation: pageEnter 400ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.card-grid > .card:nth-child(1) {
  animation-delay: 0ms;
}

.card-grid > .card:nth-child(2) {
  animation-delay: 60ms;
}

.card-grid > .card:nth-child(3) {
  animation-delay: 120ms;
}

.card-grid > .card:nth-child(4) {
  animation-delay: 180ms;
}

.toast {
  animation: toastEnter 300ms var(--transition-bounce);
}

.modal__dialog {
  animation: modalEnter 250ms var(--transition-bounce);
}

.countdown--urgent {
  color: var(--color-danger-500);
  animation: pulse 2s ease-in-out infinite;
}

.skeleton {
  background: linear-gradient(90deg, var(--gray-100), var(--gray-200), var(--gray-100));
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite linear;
}

input:-webkit-autofill,
select:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--text-primary);
  -webkit-box-shadow: 0 0 0 1000px var(--bg-surface) inset;
  transition: background-color 5000s ease-in-out 0s;
}
