/* Custom Animations */
@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

@keyframes confettiFall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

.slide-in-right {
  animation: slideInRight 0.5s ease-out;
}

.decision-node.active {
  animation: pulse 2s ease-in-out infinite;
}

.result-node {
  animation: pulse 1.5s ease-in-out 3;
}

.confetti-particle {
  position: absolute;
  animation: confettiFall linear forwards;
  top: -10%;
}

.agent-icon {
  transition: transform 0.3s ease;
}

.agent-icon:hover {
  transform: scale(1.2) rotate(10deg);
}

/* Smooth transitions */
* {
  transition: background-color 0.2s ease, color 0.2s ease;
}

button {
  transition: all 0.2s ease;
}

button:active {
  transform: scale(0.95);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #a855f7;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9333ea;
}