.left-sidebar {
    width: 180px;
    height: 100%;
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px 0;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.sidebar-group {
    margin-bottom: 20px;
}

.sidebar-group-title {
    padding: 0 20px 10px;
    font-size: 14px;
    font-weight: bold;
    color: #16baaa;
    border-bottom: 1px solid #34495e;
    margin-bottom: 10px;
}

.sidebar-item {
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    border-left: 3px solid transparent;
    padding-right: 40px; /* 为徽章留出空间 */
    text-decoration: none;
    color: #ecf0f1;
}

.sidebar-item:hover {
    text-decoration: none;
    color: #ecf0f1;
}

.sidebar-item:hover {
    background-color: #34495e;
    border-left-color: #16baaa;
}

.sidebar-item.active {
    background: linear-gradient(135deg, #1de9b6 0%, #16baaa 50%, #129a8c 100%);
    color: #fff;
    border-left-color: transparent;
    border-radius: 50px;
    margin: 4px 12px;
    padding: 10px 20px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(22, 186, 170, 0.4);
    transition: all 0.3s ease;
}

.sidebar-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.sidebar-item > span:not(.sidebar-badge) {
    flex: 1;
    font-size: 14px;
}

.sidebar-badge {
    background-color: #e74c3c; /* 徽章背景颜色 */
    color: white; /* 徽章文字颜色 */
    padding: 1px 3px; /* 徽章内边距 */
    border-radius: 4px; /* 徽章圆角 */
    font-size: 11px; /* 徽章文字大小，这里可以修改 */
    white-space: nowrap; /* 徽章文字不换行 */
    position: absolute; /* 徽章定位方式 */
    top: 5px; /* 徽章顶部位置 */
    right: 6px; /* 徽章右侧位置 */
    line-height: 12px; /* 徽章文字行高 */
    min-width: 20px; /* 徽章最小宽度 */
    text-align: center; /* 徽章文字居中 */
}

.sidebar-item.active .sidebar-badge {
    background-color: #fff;
    color: #16baaa;
}