/* ========================================
   侧边栏模块 (Sidebar)
   包含：侧边栏、导航菜单
   ======================================== */

/* 侧边栏 */
.sidebar {
    width: 220px;
    height: 100vh;
    background: linear-gradient(180deg, #0099ff 0%, #0066ff 100%);
    color: white;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 4px 0 20px rgba(0, 102, 255, 0.15);
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar-logo {
    padding: 20px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 导航菜单 */
.nav-menu {
    padding: 16px 0;
    flex-shrink: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 11px 16px;
    margin: 3px 10px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    border-left: none;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: white;
    border-radius: 0 2px 2px 0;
    transition: height 0.3s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateX(4px);
}

.nav-item:hover::before {
    height: 24px;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-item.active::before {
    height: 32px;
}

.nav-item.highlight {
    background: rgba(255, 215, 0, 0.1);
}

.nav-icon {
    font-size: 18px;
    margin-right: 12px;
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.nav-icon svg {
    width: 18px;
    height: 18px;
}

.nav-item:hover .nav-icon {
    transform: scale(1.08);
}

.nav-text {
    font-size: 13.5px;
    flex: 1;
    font-weight: 500;
}

.new-badge {
    background: #ff4757;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
}

.star-icon {
    font-size: 16px;
    margin-left: auto;
}

/* ========================================
   侧边栏统计卡片
   ======================================== */
.sidebar-stats {
    padding: 12px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.stat-card:last-child {
    margin-bottom: 0;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(3px);
}

.stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-window {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-icon-ip {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-icon-running {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-icon svg {
    color: white;
    width: 16px;
    height: 16px;
}

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2px;
}

.stat-value {
    font-size: 14px;
    font-weight: 700;
    color: white;
    font-family: 'Arial', sans-serif;
}

.stat-value-success {
    color: #4ade80;
}

/* ========================================
   快捷操作按钮
   ======================================== */
.sidebar-actions {
    padding: 10px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-action-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.sidebar-action-btn:last-child {
    margin-bottom: 0;
}

.sidebar-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.sidebar-action-btn svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* ========================================
   侧边栏底部版本信息
   ======================================== */
.sidebar-footer {
    margin-top: auto;
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, #0099ff 0%, #0066ff 100%);
}

.version-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    justify-content: center;
}

.version-info svg {
    width: 12px;
    height: 12px;
}

