/* ==========================================================================
   Complete Default Scrollbar Removal & Natural Scrolling Setup
   ========================================================================== */

/* Ensure document height is natural and not locked by height: 100% */
html,
body {
    height: auto !important;
    min-height: 100% !important;
    scrollbar-width: none !important;
    /* Firefox */
    -ms-overflow-style: none !important;
    /* IE 10+ and Edge */
}

/* Hide default scrollbar for Chrome, Safari, Edge, Opera and WebKit */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    width: 0px !important;
    height: 0px !important;
    display: none !important;
    background: transparent !important;
    -webkit-appearance: none !important;
}

/* Allow custom scrollbar styling on inner dropdowns */
.custom-options::-webkit-scrollbar {
    width: 6px !important;
    height: auto !important;
    display: block !important;
}

/* ==========================================================================
   Custom Scrollbar Design (Golden / Amber Theme matching brand identity)
   ========================================================================== */

.custom-scrollbar-track {
    position: fixed;
    top: 0;
    right: 0;
    width: 12px;
    height: 100vh;
    height: 100dvh;
    background: transparent;
    z-index: 1000; /* Stays below the fixed header (z-index: 10050) */
    user-select: none;
    -webkit-user-select: none;
    transition: background-color 0.2s ease, width 0.2s ease;
    display: block;
    pointer-events: auto;
}

.custom-scrollbar-track:hover {
    background-color: rgba(245, 158, 11, 0.05);
}

.custom-scrollbar-thumb {
    position: absolute;
    top: 0;
    right: 2px;
    width: 4px;
    min-height: 32px;
    background-color: #f59e0b;
    background: linear-gradient(180deg, #fbb01b 0%, #f59e0b 100%);
    border-radius: 4px;
    cursor: grab;
    transition: background-color 0.2s ease, width 0.15s ease, box-shadow 0.2s ease;
    will-change: transform;
    touch-action: none;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.45);
}

/* Hover and active states */
.custom-scrollbar-track:hover .custom-scrollbar-thumb,
.custom-scrollbar-thumb:hover {
    width: 6px;
    background-color: #fbbf24;
    background: linear-gradient(180deg, #fcc033 0%, #fab005 100%);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.65);
}

.custom-scrollbar-thumb.is-dragging {
    width: 7px;
    background-color: #f59e0b;
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.85);
    cursor: grabbing !important;
}

/* High-performance dragging state: turn off smooth scrolling and text selection */
html.scrollbar-dragging,
html.scrollbar-dragging body,
body.scrollbar-dragging {
    scroll-behavior: auto !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    cursor: grabbing !important;
}