/* Arkter dashboard — module category navigation */

.module-category-nav {
    margin-top: 12px;
}

.module-category-nav details {
    margin-bottom: 8px;
}

.module-category-nav summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    list-style: none;
    transition: background 0.2s, color 0.2s;
}

.module-category-nav summary::-webkit-details-marker {
    display: none;
}

.module-category-nav summary::after {
    content: "+";
    font-size: 16px;
    font-weight: 400;
}

.module-category-nav details[open] summary::after {
    content: "\2212";
}

.module-category-nav summary:hover {
    background: rgba(53, 217, 255, 0.06);
    color: var(--cyan);
}

.module-category-links {
    display: flex;
    flex-direction: column;
    padding-left: 8px;
}

.module-category-links a {
    font-size: 13px;
}

.module-category-section {
    margin-top: 28px;
}

.module-category-heading {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.module-category-section .module-grid {
    margin-top: 0;
}

@media (max-width: 900px) {
    .module-category-nav {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .module-category-nav summary {
        transition: none;
    }
}

/* Independent scrolling for the server sidebar */

@media (min-width: 901px) {
    .server-layout > .sidebar {
        position: sticky;
        top: 100px;
        max-height: calc(100vh - 116px);
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: thin;
        scrollbar-color: rgba(53, 217, 255, 0.35) transparent;
        overscroll-behavior: contain;
    }

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

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

    .server-layout > .sidebar::-webkit-scrollbar-thumb {
        background: rgba(53, 217, 255, 0.35);
        border-radius: 10px;
    }

    .server-layout > .sidebar::-webkit-scrollbar-thumb:hover {
        background: rgba(53, 217, 255, 0.65);
    }
}
