/* Theme Package 2 — Navigation refinements */

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, .28);
    border-radius: 999px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, .42);
}

.sidebar-nav a {
    position: relative;
}

.sidebar-nav a.active {
    background: var(--sidebar-active);
    color: #fff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, .18);
}

.sidebar-nav a.active::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #60a5fa;
}

.sidebar-nav a span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-section:first-child {
    margin-top: 4px;
}

@media (max-width: 860px) {
    .sidebar {
        width: min(86vw, 300px);
    }

    .brand {
        padding-right: 18px;
    }

    .sidebar-nav {
        padding-bottom: 35px;
    }
}
