/* 侧边栏样式 */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: white;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: var(--z-sidebar);
    transition: width var(--transition-speed);
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 16px;
    color: white;
}

.logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.sidebar-toggle {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    cursor: pointer;
    display: none;
    padding: 4px;
    border-radius: 4px;
    transition: background-color var(--transition-speed);
}

.sidebar-toggle:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.sidebar-menu {
    padding: 16px 0;
}

.menu-list {
    padding: 0;
    margin: 0;
}

.menu-item {
    margin-bottom: 4px;
}

.menu-item a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.9);
    transition: all var(--transition-speed);
    border-radius: 0;
    position: relative;
    margin: 0;
    font-weight: 400;
    font-size: 14px;
}

.menu-item a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.menu-item.active a {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-right: 3px solid white;
}

.menu-item.active a::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: white;
}

.menu-item a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* 移除子菜单相关样式 - 现在所有菜单都是一级 */

/* 系统管理员专用菜单项样式 */
.system-admin-only {
    border-left: 3px solid var(--warning-color);
    margin: 4px 0;
}

.system-admin-only a {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, transparent 100%);
    color: rgba(255, 255, 255, 0.95) !important;
}

.system-admin-only a:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    color: white !important;
}

.system-admin-only a i {
    color: var(--warning-color);
}