.scrollbar-none {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scrollbar-none::-webkit-scrollbar {
  display: none;
}

.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) var(--color-secondary-bg);
  overflow: auto;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: var(--color-secondary-bg);
  border-radius: 0;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 0;
  border: none;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-lighter);
}

.custom-scrollbar::-webkit-scrollbar-corner {
  background: var(--color-secondary-bg);
}

.custom-scrollbar-thin {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
  overflow: auto;
}

.custom-scrollbar-thin::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar-thin::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar-thin::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

.custom-scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-lighter);
}

.custom-scrollbar-auto {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
  overflow: auto;
}

.custom-scrollbar-auto::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.custom-scrollbar-auto::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar-auto::-webkit-scrollbar-thumb {
  background: rgba(128, 128, 128, 0.3);
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.custom-scrollbar-auto:hover::-webkit-scrollbar-thumb {
  background: var(--color-border);
}

.custom-scrollbar-auto::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-lighter);
}

.custom-scrollbar-auto::-webkit-scrollbar-corner {
  background: transparent;
}

.editor-scrollable {
  scrollbar-width: thin;
  scrollbar-color: rgba(128, 128, 128, 0.3) transparent;
  overscroll-behavior: none;
}

.editor-scrollable::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.editor-scrollable::-webkit-scrollbar-track {
  background: transparent;
}

.editor-scrollable::-webkit-scrollbar-thumb {
  background: rgba(128, 128, 128, 0.3);
  border-radius: 2px;
  transition: background-color 0.2s ease;
}

.editor-scrollable:hover::-webkit-scrollbar-thumb {
  background: var(--color-border);
}

.editor-scrollable::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-lighter);
}

.editor-scrollable::-webkit-scrollbar-corner {
  background: transparent;
}

.custom-scrollbar,
.custom-scrollbar-thin,
.custom-scrollbar-auto {
  scroll-behavior: smooth;
  overscroll-behavior: none !important;
}

/* .editor-scrollable intentionally does NOT use scroll-behavior: smooth for instant scrolling feedback */

.scrollbar-hidden {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scrollbar-hidden::-webkit-scrollbar {
  display: none;
}

.tab-scroll-container {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.tab-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.tab-scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

.tab-scroll-container::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
  transition: background-color 0.2s ease;
}

.tab-scroll-container::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-lighter);
}

.tab-scroll-container:hover::-webkit-scrollbar-thumb {
  background: rgba(224, 224, 224, 0.8);
}

.tab-scroll-container > * {
  flex-shrink: 0;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background-color: rgba(100, 100, 100, 0.5);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(100, 100, 100, 0.7);
}
