/* Unified Scrollbar Styles for BrawlAcademy */

/* Base scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #070810;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: rgba(129, 140, 248, 0.5);
  border-radius: 3px;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(129, 140, 248, 0.7);
}

::-webkit-scrollbar-corner {
  background: #070810;
}

/* Firefox scrollbar styling */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(129, 140, 248, 0.5) #070810;
}

/* Mobile scrollbar optimization */
@media (max-width: 767px) {
  ::-webkit-scrollbar {
    width: 4px;
    height: 4px;
  }

  ::-webkit-scrollbar-thumb {
    background: rgba(129, 140, 248, 0.35);
  }
}

/* Hide scrollbar when needed */
.hide-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;  /* Chrome, Safari, Opera */
}

/* Horizontal scrolling container with momentum */
.inline-detail-tabs {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(129, 140, 248, 0.5) transparent;
}

.inline-detail-tabs::-webkit-scrollbar {
  height: 6px;
}

@media (max-width: 767px) {
  .inline-detail-tabs::-webkit-scrollbar {
    height: 4px;
  }
}

/* Shared page scroll contract for shell-mounted pages */
html.biq-shell-page {
  height: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
}

body.biq-shell-page {
  min-height: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}
