
/* ── P&ID Graph Visualization Styles ────────────────────────────────────────── */
.pid-graph-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    grid-template-rows: 50px 1fr;
    height: calc(100vh - 100px);
    gap: 10px;
    background: #1e1e1e;
    color: #ddd;
    font-family: var(--fm);
}

.pid-toolbar {
    grid-column: 1 / 3;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 15px;
    background: #2d2d2d;
    border-bottom: 1px solid #444;
}

.pid-canvas-wrap {
    position: relative;
    overflow: hidden;
    background: #000;
    cursor: crosshair;
}

#pid-canvas {
    display: block;
}

.pid-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    z-index: 100;
    border: 1px solid #666;
    white-space: nowrap;
}

.pid-info-panel {
    background: #252526;
    border-left: 1px solid #444;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.info-box {
    background: #1e1e1e;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #333;
    font-size: 13px;
    line-height: 1.5;
}

.impact-list {
    font-size: 13px;
}

.impact-list ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.impact-list li {
    padding: 5px 8px;
    margin-bottom: 4px;
    background: #333;
    border-radius: 3px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.impact-list li:hover {
    background: #444;
}

.status-bar {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.progress-wrap {
    width: 150px;
    height: 10px;
    background: #444;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: #4caf50;
    transition: width 0.3s ease;
}
