/* assets/css/scrollbar.css */

/* Scrollbar immer anzeigen */
html {
    overflow-y: scroll;
    scroll-behavior: smooth;
}

/* Webkit Browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #1e293b; /* slate-800 */
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: #475569; /* slate-600 */
    border-radius: 6px;
    border: 2px solid #1e293b;
    transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b; /* slate-500 */
}

::-webkit-scrollbar-thumb:active {
    background: #94a3b8; /* slate-400 */
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #475569 #1e293b;
}

/* Scrollbare Container (Tabellen, Dropdown-Listen, etc.) */
.custom-scrollbar {
    overflow-y: auto;
    overflow-x: hidden;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #334155; /* slate-700 */
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #64748b; /* slate-500 */
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; /* slate-400 */
}

/* Horizontale Scrollbar für Tabellen */
.table-container {
    overflow-x: auto;
    overflow-y: visible;
}

.table-container::-webkit-scrollbar {
    height: 8px;
}

/* Mobile: Scrollbar etwas dünner */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }
    
    .custom-scrollbar::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }
}
