/* Graph Explorer Styles */
.graph-container {
    display: none;
    /* Hidden by default */
    flex-direction: column;
    flex: 1;
    /* Use flex: 1 to fill parent */
    height: 100%;
    /* Force height */
    width: 100%;
    background: var(--surface-color);
    border-radius: 16px;
    overflow: hidden;
    min-height: 0;
    /* Important for nested flex scrolling */
}

.graph-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.graph-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.graph-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.graph-legend {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

/* Vis.js network overrides for dark theme */
.graph-visualization .vis-network {
    background: transparent !important;
}

.graph-visualization canvas {
    border-radius: 0 0 16px 16px;
}

/* Node Details Panel styles moved to styles.css */

.details-panel .panel-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.details-panel .panel-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.details-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.detail-item {
    margin-bottom: 1.5rem;
}

.detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: block;
}

.detail-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.detail-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .graph-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .graph-legend {
        flex-wrap: wrap;
        gap: 1rem;
    }

    /* Mobile details panel styles moved to styles.css */
}

/* Graph Visualization Container */
.graph-visualization {
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 0;
    position: relative;
    overflow: hidden;
}