/* src/globalScrollbars.css
   Fix — every scrollable area in the app gets a visible scrollbar by
   default. Previously, scrollbar styling (.vdi-scroll / .vdi-toolbar-scroll
   / .vdi-tabrow-scroll) was defined via inline <style> tags duplicated
   across several files (DrawingRightPanel.jsx, DrawingTopToolbar.jsx), and
   only actually took effect on pages where ONE of those specific
   components happened to be mounted — several other files
   (DrawingScanResultsTab.jsx, DrawingLeftPanel.jsx) use the .vdi-scroll
   className without the definition living anywhere near them, so their
   scrollbars silently fell back to the browser default whenever neither
   defining component was present. One global stylesheet, loaded once in
   main.jsx, removes that mount-order dependency entirely.

   Also addresses "scrollbars are hard to see" directly: the previous
   per-component definitions used COLOR.border as the thumb color
   (#1a2540 in dark mode), which sits close in luminance to the dark
   surface background (#07090f) it's drawn on — low contrast by
   construction, not a rendering bug. textMuted (#94a3b8 dark /
   #334155 light) has real contrast against both themes' surface color
   and is used here instead; COLOR.interactive on hover, same as before.

   Theme-aware via the CSS custom properties ThemeContext.jsx already
   mirrors onto :root (see that file's own header note) — these rules need
   no theme/mode logic of their own. */

* {
  scrollbar-width: auto;
  scrollbar-color: var(--vdi-text-muted) transparent;
}

*::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

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

*::-webkit-scrollbar-thumb {
  background-color: var(--vdi-text-muted);
  border-radius: 6px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: var(--vdi-interactive);
}

*::-webkit-scrollbar-corner {
  background: transparent;
}
