/* 
 * Scrollbar styling for dark and light modes
 * Applied to scrollable containers throughout the app
 * Provides consistent scrollbar appearance across browsers
 */

/* Define scrollbar size variable */
:root {
    --scrollbar-size: 14px;
}

/* Dark mode scrollbars (default) */
.scrollbar-styled::-webkit-scrollbar {
    width: var(--scrollbar-size);
    height: var(--scrollbar-size);
    background: transparent;
}

.scrollbar-styled::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 8px;
}

.scrollbar-styled::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.scrollbar-styled::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Firefox dark mode scrollbars */
.scrollbar-styled {
    scrollbar-width: auto;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Light mode scrollbars */
html[data-theme="light"] .scrollbar-styled::-webkit-scrollbar {
    width: var(--scrollbar-size);
    height: var(--scrollbar-size);
    background: transparent;
}

html[data-theme="light"] .scrollbar-styled::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 8px;
}

html[data-theme="light"] .scrollbar-styled::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

html[data-theme="light"] .scrollbar-styled::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.35);
}

/* Firefox light mode scrollbars */
html[data-theme="light"] .scrollbar-styled {
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}
