/* NextGen Labs shared dark scrollbar theme */
:root {
  color-scheme: dark;
  --scrollbar-track: #0e2156;
  --scrollbar-thumb: #5f6863;
  --scrollbar-thumb-hover: #747f79;
  --scrollbar-thumb-active: #89948e;
}

html,
* {
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width: thin;
}

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

*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb {
  min-width: 36px;
  min-height: 36px;
  background: var(--scrollbar-thumb);
  background-clip: padding-box;
  border: 2px solid var(--scrollbar-track);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:active {
  background: var(--scrollbar-thumb-active);
  background-clip: padding-box;
}

*::-webkit-scrollbar-corner,
*::-webkit-scrollbar-button {
  background: var(--scrollbar-track);
}

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

@media (forced-colors: active) {
  html,
  * {
    scrollbar-color: auto;
  }

  *::-webkit-scrollbar-track,
  *::-webkit-scrollbar-corner,
  *::-webkit-scrollbar-button {
    background: Canvas;
  }

  *::-webkit-scrollbar-thumb,
  *::-webkit-scrollbar-thumb:hover,
  *::-webkit-scrollbar-thumb:active {
    background: ButtonText;
    border-color: Canvas;
  }
}
