/* sidebar.css  - 独立侧边栏样式 */
 
/* 侧边栏基础样式 */
.sidebar {
    width: 200px;
    background-color: #2c3e50;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100vh;
    color: white;
    transition: all 0.3s ease;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    z-index: 1000;
    box-sizing: border-box;
}
 
/* 侧边栏logo区域 */
.sidebar-logo {
    text-align: center;
    margin-bottom: 20px;
}
 
.sidebar-logo img {
    width: 80%;
    max-width: 150px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}
 
/* 侧边栏导航菜单 */
.sidebar-nav {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
 
.sidebar-nav li {
    margin-bottom: 10px;
}
 
.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 10px;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
 
.sidebar-nav li a i {
    margin-right: 10px;
    font-size: 18px;
}
 
.sidebar-nav li a:hover {
    background-color: #34495e;
}
 
.sidebar-nav li a.active  {
    background-color: #3498db;
    font-weight: bold;
}
 
/* 主内容区域调整 */
.main-content {
    margin-left: 240px; /* 侧边栏宽度 + 边距 */
    width: calc(100% - 240px);
    padding: 20px;
    min-width: 0;
}
 
/* 响应式设计 - 小屏幕适配 */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: static;
        height: auto;
        padding: 15px;
    }
 
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 15px;
    }
 
    .sidebar-nav {
        display: block;
    }
 
    .sidebar-nav li {
        margin: 10px 0;
    }
}
 
/* 可选：滚动条样式 */
.sidebar::-webkit-scrollbar {
    width: 5px;
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}
