/* Custom overrides beyond TailwindCSS */

/* Smooth scrollbar for dark theme */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Alpine.js x-collapse transition */
[x-cloak] {
  display: none !important;
}

/* Smooth transitions for collapsible sections */
[x-collapse] {
  overflow: hidden;
}

/* Input autofill override for dark theme */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px #11111b inset !important;
  -webkit-text-fill-color: #e5e7eb !important;
  caret-color: #e5e7eb;
}

/* Toast animation */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#toast-container > div,
.fixed.bottom-6 > div {
  animation: slideInRight 0.3s ease-out;
}

/* Pulse animation for active status */
@keyframes statusPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.status-pulse {
  animation: statusPulse 2s ease-in-out infinite;
}

/* Card hover glow effect */
.card-glow:hover {
  box-shadow: 0 0 30px -10px rgba(99, 102, 241, 0.15);
}
