/* Global Custom Scrollbar - Cyberpunk Theme */

:root {
    --cyber-bg: #14141e;
    --cyber-accent: #aaff00;
}

/* Webkit Scrollbar (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--cyber-bg, #14141e);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        rgba(170, 255, 0, 0.2) 0%,
        rgba(170, 255, 0, 0.3) 50%,
        rgba(170, 255, 0, 0.2) 100%
    );
    border: 2px solid var(--cyber-bg, #14141e);
    border-radius: 6px;
    box-shadow: 
        0 0 10px rgba(170, 255, 0, 0.3),
        inset 0 0 5px rgba(170, 255, 0, 0.2);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        rgba(170, 255, 0, 0.3) 0%,
        rgba(170, 255, 0, 0.5) 50%,
        rgba(170, 255, 0, 0.3) 100%
    );
    box-shadow: 
        0 0 15px rgba(170, 255, 0, 0.5),
        inset 0 0 8px rgba(170, 255, 0, 0.3);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(
        180deg,
        rgba(170, 255, 0, 0.4) 0%,
        rgba(170, 255, 0, 0.6) 50%,
        rgba(170, 255, 0, 0.4) 100%
    );
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(170, 255, 0, 0.3) var(--cyber-bg, #14141e);
}

/* Specific scrollbar for content areas */
.content ::-webkit-scrollbar,
.page_content_wrap ::-webkit-scrollbar,
.content_wrap_fullscreen ::-webkit-scrollbar {
    width: 12px;
}

.content ::-webkit-scrollbar-track,
.page_content_wrap ::-webkit-scrollbar-track,
.content_wrap_fullscreen ::-webkit-scrollbar-track {
    background: var(--cyber-bg, #14141e);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.content ::-webkit-scrollbar-thumb,
.page_content_wrap ::-webkit-scrollbar-thumb,
.content_wrap_fullscreen ::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        rgba(170, 255, 0, 0.2) 0%,
        rgba(170, 255, 0, 0.3) 50%,
        rgba(170, 255, 0, 0.2) 100%
    );
    border: 2px solid var(--cyber-bg, #14141e);
    border-radius: 6px;
    box-shadow: 
        0 0 10px rgba(170, 255, 0, 0.3),
        inset 0 0 5px rgba(170, 255, 0, 0.2);
}

.content ::-webkit-scrollbar-thumb:hover,
.page_content_wrap ::-webkit-scrollbar-thumb:hover,
.content_wrap_fullscreen ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        rgba(170, 255, 0, 0.3) 0%,
        rgba(170, 255, 0, 0.5) 50%,
        rgba(170, 255, 0, 0.3) 100%
    );
    box-shadow: 
        0 0 15px rgba(170, 255, 0, 0.5),
        inset 0 0 8px rgba(170, 255, 0, 0.3);
}

/* Mobile scrollbar (thinner) */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    ::-webkit-scrollbar-thumb {
        border-width: 1px;
    }
}
