@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom scrollbar for Kanban columns */
.overflow-y-auto {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.overflow-y-auto::-webkit-scrollbar {
  width: 4px;
}
.overflow-y-auto::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

/* Dark mode scrollbar */
.dark .overflow-y-auto {
  scrollbar-color: #475569 transparent;
}
.dark .overflow-y-auto::-webkit-scrollbar-thumb {
  background: #475569;
}

/* ── Custom animations ─────────────────────────────────────────────────── */

/* Toast slide in */
@keyframes slide-in-right {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.animate-slide-in-right {
  animation: slide-in-right 0.3s ease-out;
}

/* Mascot glow pulse */
@keyframes mascot-glow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}
.animate-mascot-glow {
  animation: mascot-glow 2s ease-in-out infinite;
}

/* Confetti fall */
@keyframes confetti-fall {
  0% {
    transform: translateY(-10px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}
.animate-confetti-fall {
  animation: confetti-fall 3s ease-in forwards;
}

/* Confetti spin */
@keyframes confetti-spin {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}
.animate-confetti-spin {
  animation: confetti-spin 1.5s linear infinite;
}

/* Celebration pop */
@keyframes celebration-pop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  60% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.animate-celebration-pop {
  animation: celebration-pop 0.5s ease-out;
}
