/* 左侧导航面板样式 */
.nav-panel {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: #1a1a2e;
    border-right: 1px solid #2a2a4e;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.nav-header {
    padding: 20px;
    border-bottom: 1px solid #2a2a4e;
    background: #151525;
}

.nav-header h2 {
    color: #e0e0e0;
    font-size: 18px;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-header h2 i {
    color: #6c63ff;
}

.nav-tabs {
    display: flex;
    border-bottom: 1px solid #2a2a4e;
    background: #151525;
}

.nav-tab {
    flex: 1;
    padding: 12px 15px;
    background: transparent;
    border: none;
    color: #a0a0c0;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.nav-tab:hover {
    color: #e0e0e0;
    background: rgba(108, 99, 255, 0.1);
}

.nav-tab.active {
    color: #6c63ff;
    border-bottom-color: #6c63ff;
    background: rgba(108, 99, 255, 0.05);
}

.nav-content {
    padding: 15px;
}

.nav-section {
    margin-bottom: 25px;
}

.nav-section h3 {
    color: #b0b0d0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-section h3 i {
    color: #6c63ff;
    font-size: 12px;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    padding: 8px 12px;
    margin: 4px 0;
    border-radius: 6px;
    cursor: pointer;
    color: #c0c0e0;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item:hover {
    background: rgba(108, 99, 255, 0.1);
    color: #e0e0e0;
    transform: translateX(2px);
}

.nav-item.active {
    background: rgba(108, 99, 255, 0.2);
    color: #6c63ff;
    font-weight: 500;
}

.nav-item i {
    font-size: 12px;
    color: #6c63ff;
    opacity: 0.7;
}

.nav-item .node-degree {
    margin-left: auto;
    font-size: 12px;
    color: #8888aa;
    background: rgba(136, 136, 170, 0.1);
    padding: 2px 6px;
    border-radius: 10px;
}

.nav-search {
    padding: 15px;
    border-bottom: 1px solid #2a2a4e;
}

.nav-search input {
    width: 100%;
    padding: 10px 12px;
    background: #252540;
    border: 1px solid #3a3a5e;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 14px;
}

.nav-search input:focus {
    outline: none;
    border-color: #6c63ff;
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}

.nav-toggle {
    position: fixed;
    left: 280px;
    top: 20px;
    width: 36px;
    height: 36px;
    background: #1a1a2e;
    border: 1px solid #2a2a4e;
    border-left: none;
    border-radius: 0 6px 6px 0;
    color: #e0e0e0;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: #252540;
    color: #6c63ff;
}

.nav-panel.collapsed {
    transform: translateX(-280px);
}

.nav-panel.collapsed + .nav-toggle {
    left: 0;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .nav-panel {
        width: 250px;
    }

    .nav-toggle {
        left: 250px;
    }

    .nav-panel.collapsed + .nav-toggle {
        left: 0;
    }
}

@media (max-width: 768px) {
    .nav-panel {
        width: 100%;
        max-width: 300px;
        transform: translateX(-100%);
    }

    .nav-panel.open {
        transform: translateX(0);
    }

    .nav-toggle {
        left: 0;
        top: 10px;
    }

    .nav-panel.open + .nav-toggle {
        left: calc(100% - 36px);
    }
}

/* 滚动条样式 */
.nav-panel::-webkit-scrollbar {
    width: 6px;
}

.nav-panel::-webkit-scrollbar-track {
    background: #151525;
}

.nav-panel::-webkit-scrollbar-thumb {
    background: #3a3a5e;
    border-radius: 3px;
}

.nav-panel::-webkit-scrollbar-thumb:hover {
    background: #4a4a6e;
}

/* 社区颜色标记 */
.community-marker {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

/* 超边标记 */
.hyperedge-marker {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 8px;
    flex-shrink: 0;
    background: linear-gradient(45deg, #6c63ff, #ff6b9d);
}

/* 节点类型标记 */
.node-type-marker {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

.node-type-document {
    background-color: #6c63ff;
}

.node-type-concept {
    background-color: #ff6b9d;
}

/* 统计卡片 */
.stats-card {
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
}

.stats-card h4 {
    color: #e0e0e0;
    font-size: 14px;
    margin: 0 0 8px 0;
}

.stats-card .stat-value {
    color: #6c63ff;
    font-size: 24px;
    font-weight: 600;
}

.stats-card .stat-label {
    color: #a0a0c0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}