/* Custom Neobrutalism Scrollbar */

/* Hide default scrollbar */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

html,
body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom scrollbar container - neobrutalism style */
.custom-scrollbar {
    position: fixed;
    right: 8px;
    top: 0;
    bottom: 0;
    width: 16px;
    background: var(--paper-bg);
    border: 3px solid var(--text-primary);
    z-index: 10000;
    pointer-events: all;
    box-shadow: 4px 4px 0px var(--text-primary);
}

/* Scrollbar track */
.custom-scrollbar::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--text-primary);
    opacity: 0.2;
}

/* Scrollbar thumb (the moving part) - neobrutalism block style */
.custom-scrollbar-thumb {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--accent);
    border: 2px solid var(--text-primary);
    transition: transform 0.1s, box-shadow 0.1s;
    box-shadow: 2px 2px 0px var(--text-primary);
}

.custom-scrollbar-thumb:hover {
    transform: translateX(-2px);
    box-shadow: 4px 4px 0px var(--text-primary);
    background: var(--text-primary);
}

.custom-scrollbar-thumb:active {
    transform: translateX(0);
    box-shadow: 1px 1px 0px var(--text-primary);
    background: var(--led-on);
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .custom-scrollbar {
        width: 3px;
    }
    
    .custom-scrollbar::before {
        width: 1px;
    }
    
    .custom-scrollbar-thumb {
        width: 3px;
    }
    
    .custom-scrollbar-thumb:hover {
        width: 4px;
    }
}
