@keyframes glow {
  0% { box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3); }
  100% { box-shadow: 0 4px 20px rgba(168, 85, 247, 0.6); }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
}

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

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

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Smooth transitions */
* {
  transition: all 0.2s ease;
}

/* Node hover effects */
.node:hover {
  transform: scale(1.02);
}

/* Canvas background pattern */
.canvas-bg {
  background-image: radial-gradient(circle, #e2e8f0 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Floating animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Connection line animations */
@keyframes dash {
  to {
    stroke-dashoffset: -10;
  }
}

/* Loading spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spin {
  animation: spin 1s linear infinite;
}

/* Pulse animation for generating state */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Custom focus styles */
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .absolute.top-16.left-4,
  .absolute.top-16.right-4 {
    left: 0.5rem;
    right: 0.5rem;
    width: auto;
  }
  
  .px-6 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}