/* Modern Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    /* gray-300 */
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
    /* gray-400 */
}

/* Dark mode overrides */
.dark ::-webkit-scrollbar-thumb {
    background-color: #374151;
    /* gray-700 */
}

.dark ::-webkit-scrollbar-thumb:hover {
    background-color: #4b5563;
    /* gray-600 */
}

/* Firefox support */
* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.dark * {
    scrollbar-color: #374151 transparent;
}

@media (max-width: 640px) {
    #partial-content table,
    #app-tab-panels table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
        width: max-content;
    }
}

.sidebar-link {
    --accent-rgb: 59, 130, 246;
    transition: background-color 220ms cubic-bezier(.2, .8, .2, 1), box-shadow 220ms cubic-bezier(.2, .8, .2, 1), transform 220ms cubic-bezier(.2, .8, .2, 1);
}

.sidebar-link i {
    transition: transform 220ms cubic-bezier(.2, .8, .2, 1), color 220ms cubic-bezier(.2, .8, .2, 1);
}

.sidebar-link:hover {
    background-color: rgba(var(--accent-rgb), 0.24);
    box-shadow: 0 14px 30px -18px rgba(var(--accent-rgb), 0.75);
    transform: translateY(-1px);
}

.sidebar-link:hover i {
    color: rgba(var(--accent-rgb), 1);
    transform: scale(1.12);
}

.sidebar-link:active {
    transform: translateY(0);
}

.sidebar-link:focus-visible {
    outline: 2px solid rgba(var(--accent-rgb), 0.9);
    outline-offset: 2px;
}
