/* Scrollbar styling shared across public pages */

/* ===== SCROLLBAR STYLES ===== */
html {
    scrollbar-width: thin;
    scrollbar-color: #BDC1C6 #F8F9FA;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #F8F9FA;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #BDC1C6;
    border-radius: 10px;
    border: 2px solid #F8F9FA;
    transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #9AA0A6;
}

::-webkit-scrollbar-thumb:active {
    background: #80868B;
}

::-webkit-scrollbar-corner {
    background: #F8F9FA;
}

.dash-header::-webkit-scrollbar-track {
    background: #374151;
    border: 2px solid #374151;
}

.dash-header::-webkit-scrollbar-thumb {
    background: #6B7280;
    border: 2px solid #374151;
}

.dash-header::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

.dash-header::-webkit-scrollbar-thumb:active {
    background: #D1D5DB;
}

::-webkit-scrollbar-thumb {
    opacity: 0.7;
    transition: opacity 0.3s ease, background-color 0.2s ease;
}

*:hover::-webkit-scrollbar-thumb {
    opacity: 1;
}

@supports not selector(::-webkit-scrollbar) {
    html {
        scrollbar-width: thin;
        scrollbar-color: #BDC1C6 #F8F9FA;
    }
}

@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }

    ::-webkit-scrollbar-track {
        background: transparent;
    }

    ::-webkit-scrollbar-thumb {
        background: rgba(189, 193, 198, 0.6);
        border-radius: 2px;
        border: none;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(154, 160, 166, 0.8);
    }

    html {
        scrollbar-width: thin;
        scrollbar-color: transparent transparent;
    }
}
