/* Enable smooth scrolling for main content only */
html:not(.modal-open) {
  scroll-behavior: smooth;
  scroll-padding: 1rem;
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid transparent;
  background-clip: content-box;
}

/* Ensure smooth animations */
* {
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Smooth transitions for interactive elements */
a, button {
  transition: all 0.2s ease-in-out;
}

/* Modal specific styles */
[role="dialog"] {
  scroll-behavior: auto !important;
}

[role="dialog"] .overflow-y-auto {
  scroll-behavior: auto !important;
  -webkit-overflow-scrolling: touch;
}
