/* Hệ Thống Hiệu Ứng Chuyển Động & Micro-Animations Chuẩn UI/UX Pro */

@keyframes modalPopIn {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes toastSlideIn {
  0% {
    opacity: 0;
    transform: translateX(32px) scale(0.95);
  }
  70% {
    transform: translateX(-4px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

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

@keyframes deadlinePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.35);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(244, 63, 94, 0);
  }
}

@keyframes dropzonePulse {
  0%, 100% {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.25);
  }
  50% {
    border-color: rgba(16, 185, 129, 0.8);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

.modal-animate {
  animation: modalPopIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-animate {
  animation: toastSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.card-interactive {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-interactive:hover {
  transform: translateY(-2px) scale(1.003);
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.14);
}

.progress-shimmer {
  background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #10b981 100%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite linear;
}

.urgent-pulse {
  animation: deadlinePulse 2s infinite;
}

/* Custom Checkbox Animation */
.task-checkbox {
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.task-checkbox:active {
  transform: scale(0.88);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(71, 85, 105, 0.7);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.7);
}

@media (prefers-reduced-motion: reduce) {
  .modal-animate,
  .toast-animate,
  .progress-shimmer,
  .urgent-pulse,
  .card-interactive {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
