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

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

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

.dark ::-webkit-scrollbar-thumb {
  background: #475569;
}

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

.dark ::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Hide scrollbar for horizontal scroll */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Animations */
@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.animate-slide-up {
  animation: slide-up 0.3s ease-out forwards;
}

.animate-pulse-slow {
  animation: pulse-slow 2s ease-in-out infinite;
}

/* Focus styles */
*:focus-visible {
  outline: 2px solid #6366F1;
  outline-offset: 2px;
}

.dark *:focus-visible {
  outline-color: #A855F7;
}

/* Text selection */
::selection {
  background-color: rgba(99, 102, 241, 0.3);
}

.dark ::selection {
  background-color: rgba(168, 85, 247, 0.3);
}

/* Gradient text for special elements */
.gradient-text {
  background: linear-gradient(135deg, #6366F1 0%, #A855F7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Smooth transitions for theme changes */
* {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Prevent layout shift during transitions */
html {
  overflow-x: hidden;
}

/* Mobile touch improvements */
@media (max-width: 768px) {
  button, a, input, textarea, select {
    -webkit-tap-highlight-color: transparent;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
}