/* Overlay scrollbar — konsep sama landing page & admin */
:root {
    --snt-scroll-size: 6px;
    --snt-scroll-thumb: rgba(30, 90, 168, 0.45);
    --snt-scroll-thumb-hover: rgba(30, 90, 168, 0.72);
    --snt-scroll-track: rgba(15, 23, 42, 0.04);
    --snt-scroll-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
    html.snt-custom-scroll {
        scrollbar-width: none;
        -ms-overflow-style: none;
        overflow-x: clip;
    }
    html.snt-custom-scroll::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
        display: none !important;
        background: transparent;
    }
}

[data-snt-custom-scroll] {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
[data-snt-custom-scroll]::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

.snt-page-scroll {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--snt-scroll-size);
    height: 100vh;
    height: 100dvh;
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
    padding-right: env(safe-area-inset-right, 0);
    z-index: 9000;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s var(--snt-scroll-ease), visibility 0s linear 0.2s;
}
.snt-page-scroll--container {
    z-index: 120;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 0;
}
.snt-page-scroll.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.2s var(--snt-scroll-ease), visibility 0s;
}
.snt-page-scroll__thumb {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    min-height: 40px;
    border-radius: 999px;
    background: var(--snt-scroll-thumb);
    transition: background-color 0.2s var(--snt-scroll-ease);
    will-change: transform;
}
.snt-page-scroll.is-visible .snt-page-scroll__thumb:hover,
.snt-page-scroll.is-dragging .snt-page-scroll__thumb {
    background: var(--snt-scroll-thumb-hover);
}

html.snt-scroll-active .snt-page-scroll:not(.snt-page-scroll--container) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (hover: none) {
    html.snt-custom-scroll {
        scrollbar-width: thin;
        scrollbar-color: rgba(30, 90, 168, 0.28) transparent;
    }
    [data-snt-custom-scroll] {
        scrollbar-width: thin;
        scrollbar-color: rgba(30, 90, 168, 0.28) transparent;
    }
}
