/* ==========================================================================
   CoolCards Global 3px Custom Scrollbar
   Universal across Chromium (Chrome, Edge, Brave, Opera), Safari, and Firefox
   ========================================================================== */

:root {
  --scrollbar-track: rgba(11, 17, 16, 0.4);
  --scrollbar-thumb: rgba(197, 245, 138, 0.35);
  --scrollbar-thumb-hover: #c5f58a;
  --scrollbar-thumb-active: #d7ffa9;
}

/* WebKit & Chromium Engines (Chrome 121+, Edge, Safari, Opera, Brave) - Exact 3px */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar,
::-webkit-scrollbar {
  width: 3px !important;
  height: 3px !important;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track,
::-webkit-scrollbar-track {
  background: transparent !important;
}

html::-webkit-scrollbar-track:hover,
body::-webkit-scrollbar-track:hover,
*::-webkit-scrollbar-track:hover,
::-webkit-scrollbar-track:hover {
  background: var(--scrollbar-track) !important;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb) !important;
  border-radius: 999px !important;
  border: none !important;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover) !important;
  box-shadow: 0 0 10px rgba(197, 245, 138, 0.7) !important;
}

html::-webkit-scrollbar-thumb:active,
body::-webkit-scrollbar-thumb:active,
*::-webkit-scrollbar-thumb:active,
::-webkit-scrollbar-thumb:active {
  background: var(--scrollbar-thumb-active) !important;
}

::-webkit-scrollbar-corner {
  background: transparent !important;
}

::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Firefox Specific Fallback (Only applied in Firefox where ::-webkit-scrollbar is unsupported) */
@supports not selector(::-webkit-scrollbar) {
  html,
  body,
  * {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) transparent;
  }
}
