.graph-viz-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
}

.graph-viz-svg-container {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    cursor: grab;
}

.graph-viz-svg-container:active {
    cursor: grabbing;
}

.graph-viz-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 250px;
    max-height: 80%;
    overflow-y: auto;
    z-index: 10;
    font-size: 12px;
    transition: opacity 0.3s;
}

.graph-viz-controls.minimized {
    width: 32px;
    height: 32px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.graph-viz-controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.graph-viz-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
}

.graph-control-section {
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.graph-control-section:last-child {
    border-bottom: none;
}

.graph-control-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: #555;
}

.graph-control-input {
    width: 100%;
}

.graph-filter-group {
    margin-top: 5px;
}

.graph-filter-item {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.graph-filter-item input {
    margin-right: 6px;
}

.graph-tooltip {
    position: absolute;
    visibility: hidden;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    max-width: 300px;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.graph-edge-label rect {
    fill: white;
    stroke: #e0e0e0;
    stroke-width: 1px;
    rx: 3px;
    ry: 3px;
    opacity: 0.95;
}

.graph-edge-label text {
    font-family: sans-serif;
    font-size: 10px;
    fill: #333;
    font-weight: bold;
    pointer-events: none;
}

.graph-node circle {
    transition: fill 0.2s, r 0.2s;
}

.graph-node:hover circle {
    stroke: #333;
    stroke-width: 2px;
}

.graph-link {
    transition: stroke-width 0.2s, stroke 0.2s;
}
