/* 左侧菜单样式 */
.left-menu {
    color: white;
    background-color: #2c2e2f;
    width: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    position: fixed; /* 固定定位 */
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh; /* 固定高度 */
}

/* 一级菜单项的新样式 */
.left-menu .nav-link-wrapper {
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    transition: all 0.3s;
    cursor: pointer;
}

.left-menu .nav-link-wrapper:hover,
.left-menu .nav-link-wrapper.active {
    background-color: rgba(52, 73, 94, 0.7);
    color: white;
}

.left-menu .nav-link-flex {
    flex: 1;
    margin-left: 10px;
    color: inherit;
    text-decoration: none;
}

/* 修复：图标和文本对齐 */
.left-menu .menu-content {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-start;
}

.left-menu .menu-icon {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* 修复：文本左对齐，紧跟在图标后面 */
.left-menu .menu-text {
    margin-left: 12px;
    flex-grow: 1;
    text-align: left;
    white-space: nowrap;
}

/* 修复：箭头和徽章右对齐 */
.left-menu .menu-right {
    display: flex;
    justify-content: center;			
    align-items: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 30px;
    margin-left: auto;
    padding: 0;
    transition: background-color 0.3s;
}

.left-menu .menu-right:not(.empty):hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.left-menu .menu-arrow {
    font-size: 0.5rem;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;			
}

/* 二级菜单样式 */
.submenu {
    background-color: rgba(0, 0, 0, 0.2);
    padding-left: 0 !important;
}

.submenu .nav-link {
    padding: 10px 20px 10px 53px !important;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s;
}

.submenu .nav-link:hover,
.submenu .nav-link.active {
    background-color: rgba(52, 73, 94, 0.7);
    color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .left-menu {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1022;
    }

    .left-menu.show {
        transform: translateX(0);
    }
}
