.cms-sidebar {
    display: flex;
    width: 100%;
    height: 100vh;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(180deg, #12255f 0%, #0d1b4a 58%, #091538 100%);
    color: #ffffff;
}

.cms-sidebar-brand {
    display: flex;
    min-height: 80px;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    padding: 13px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(22, 41, 96, 0.38);
    box-sizing: border-box;
}

.cms-sidebar-logo {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    font-size: 20px;
}

.cms-sidebar-brand-text {
    min-width: 0;
}

.cms-sidebar-title {
    color: #ffffff;
    font-size: 21px;
    font-weight: 750;
    line-height: 1.05;
    letter-spacing: 0.01em;
}

.cms-sidebar-subtitle {
    max-width: 155px;
    margin-top: 5px;
    color: #a9c6ff;
    font-size: 10px;
    line-height: 1.25;
}

.cms-sidebar-nav {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 4px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 16px 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

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

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

.cms-sidebar-nav::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.18);
}

.cms-nav-link {
    position: relative;
    display: flex;
    min-height: 39px;
    align-items: center;
    gap: 11px;
    padding: 8px 11px;
    border: 1px solid transparent;
    border-left: 3px solid transparent;
    border-radius: 6px;
    color: #d5e3ff;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    transition:
        background-color 140ms ease,
        border-color 140ms ease,
        color 140ms ease,
        transform 140ms ease;
}

.cms-nav-link:hover {
    border-color: rgba(255, 255, 255, 0.06);
    border-left-color: rgba(74, 180, 255, 0.85);
    background: rgba(58, 108, 196, 0.24);
    color: #ffffff;
}

.cms-nav-link.active {
    border-color: rgba(97, 190, 255, 0.38);
    border-left-color: #69dcff;
    background: linear-gradient(90deg, #1677f2 0%, #16a8dd 100%);
    color: #ffffff;
    box-shadow: 0 7px 18px rgba(21, 113, 236, 0.30);
}

.cms-nav-icon {
    display: flex;
    width: 24px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    filter: saturate(1.20);
}

.cms-nav-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cms-nav-divider {
    height: 1px;
    margin: 14px 8px 10px;
    background: rgba(255, 255, 255, 0.10);
}

.cms-nav-section-title {
    padding: 0 12px 5px;
    color: #7ea9ff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cms-nav-link-disabled {
    opacity: 0.5;
}

.cms-sidebar-footer {
    display: flex;
    min-height: 70px;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    padding: 15px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(6, 20, 58, 0.62);
    box-sizing: border-box;
}

.cms-sidebar-user-avatar {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    background: linear-gradient(135deg, #2f80ed, #7c5cff);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.cms-sidebar-user-info {
    min-width: 0;
    flex: 1 1 auto;
}

.cms-sidebar-user-name {
    overflow: hidden;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cms-sidebar-user-role {
    margin-top: 3px;
    color: #93b5ff;
    font-size: 10px;
}

@media (max-width: 900px) {
    .cms-sidebar {
        height: auto;
        min-height: 0;
    }

    .cms-sidebar-brand {
        min-height: 72px;
    }

    .cms-sidebar-nav {
        max-height: 52vh;
    }

    .cms-sidebar-footer {
        min-height: 66px;
    }
}
