/* ===========================================
   PATIENT ANALOG - AUTHORITATIVE SCROLLBAR
   This is the ONLY source for scrollbar CSS.
   All other scrollbar CSS has been removed.
   =========================================== */

/* Stable scrollbar gutter to prevent layout shift */
html, body {
  scrollbar-gutter: stable !important;
  overflow-y: scroll !important;
}

/* ============ WEBKIT (Chrome, Edge, Safari) ============ */

::-webkit-scrollbar {
  width: 40px !important;
  height: 40px !important;
  display: block !important;
  position: fixed !important;
  right: 0 !important;
  z-index: 2147483647 !important;
}

*, *::before, *::after {
  scrollbar-width: auto !important;
}

::-webkit-scrollbar-track {
  background: #0a0a1a !important;
  border-left: 2px solid rgba(0, 255, 255, 0.3) !important;
  margin-top: 56px !important;
  position: fixed !important;
  right: 0 !important;
  z-index: 2147483647 !important;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00ffff 0%, #ff00ff 100%) !important;
  border-radius: 12px !important;
  border: 4px solid #0a0a1a !important;
  min-height: 100px !important;
  position: relative !important;
  z-index: 2147483647 !important;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff00ff 0%, #00ffff 100%) !important;
  box-shadow: 0 0 30px rgba(0, 255, 255, 1), 0 0 60px rgba(255, 0, 255, 0.8) !important;
  border: 4px solid #00ffff !important;
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #ffffff 0%, #00ffff 100%) !important;
  box-shadow: 0 0 40px rgba(255, 255, 255, 1) !important;
}

::-webkit-scrollbar-corner {
  background: #0a0a1a !important;
  z-index: 2147483647 !important;
}

/* ============ FIREFOX ============ */

html, body {
  scrollbar-width: auto !important;
  scrollbar-color: #00ffff #0a0a1a !important;
}

/* ============ OVERRIDE CONFLICTING STYLES ============ */

/* Override gray scrollbar from main-DUnor6o6.css - FORCE LARGE SCROLLBAR */
::-webkit-scrollbar {
  width: 40px !important;
  height: 40px !important;
  z-index: 2147483647 !important;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00ffff 0%, #ff00ff 100%) !important;
  border-radius: 12px !important;
  border: 4px solid #0a0a1a !important;
  min-height: 100px !important;
  z-index: 2147483647 !important;
}

::-webkit-scrollbar-track {
  background: #0a0a1a !important;
  border-left: 2px solid rgba(0, 255, 255, 0.3) !important;
  margin-top: 56px !important;
  z-index: 2147483647 !important;
}

/* ============ DISABLE ON NAV ELEMENTS ============ */

.nav-bar::-webkit-scrollbar,
.nav-links::-webkit-scrollbar,
.nav-content::-webkit-scrollbar,
#main-nav::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.nav-bar, .nav-links, .nav-content, #main-nav {
  scrollbar-width: none !important;
}
