/* Global High-Visibility Scrollbars */
::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.24);
    border-left: 1px solid rgba(148, 163, 184, 0.22);
}

::-webkit-scrollbar-thumb {
    background-color: #3fb1a3;
    border-radius: 8px;
    border: 3px solid transparent;
    background-clip: padding-box;
    min-height: 48px;
    min-width: 48px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #2dd4bf;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:active {
    background-color: #14b8a6;
}

::-webkit-scrollbar-corner {
    background: rgba(15, 23, 42, 0.24);
}

/* Firefox fallback (scoped so Chromium keeps custom 16px ::-webkit-scrollbar) */
@supports not selector(::-webkit-scrollbar) {
    html,
    body,
    * {
        scrollbar-width: auto;
        scrollbar-color: #3fb1a3 rgba(15, 23, 42, 0.25);
    }
}

/* Force niceScroll plugin scrollbars (Photo Gallery, Journal, Sidebar) to stay wide & visible */
.nicescroll-rails {
    opacity: 1 !important;
    z-index: 9998 !important;
}

.nicescroll-rails-vr {
    width: 16px !important;
    min-width: 16px !important;
    background: rgba(15, 23, 42, 0.45) !important;
    border-radius: 8px !important;
}

.nicescroll-rails-vr .nicescroll-cursors {
    width: 14px !important;
    min-width: 14px !important;
    min-height: 48px !important;
    background-color: #3fb1a3 !important;
    border: 2px solid rgba(15, 23, 42, 0.55) !important;
    border-radius: 8px !important;
    opacity: 0.95 !important;
    -webkit-transition: width 0.15s ease-in-out, background-color 0.15s ease-in-out !important;
    transition: width 0.15s ease-in-out, background-color 0.15s ease-in-out !important;
}

.nicescroll-rails-vr .nicescroll-cursors:hover,
.nicescroll-rails-vr .nicescroll-cursors:active {
    width: 18px !important;
    background-color: #5eead4 !important;
    opacity: 1 !important;
}

.nicescroll-rails-hr {
    display: none !important;
}
