svg {
    border: 1px solid #ccc;
    width: 100%;
    height: 100%;
    margin: auto;
}
  
.node {
    fill: #69b3a2;
    stroke: #fff;
    stroke-width: 1.5px;
}

.link {
    stroke: #999;
    stroke-opacity: 0.6;
    stroke-width: 1.5px;
}

.port {
    fill: #fff;
    stroke: #000;
    stroke-width: 1px;
}

/* Context Menu Styles */
.context-menu {
    position: fixed;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 4px 0;
    z-index: 10000;
    min-width: 150px;
    pointer-events: auto;
}

.context-menu-item {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
}

.context-menu-item:hover {
    background-color: #f0f0f0;
}

/* Line Order Dialog Styles */
.line-order-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    padding: 20px;
    z-index: 2000;
    min-width: 400px;
    max-width: 600px;
}

.line-order-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
}

.line-order-dialog h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: bold;
}

.line-order-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.line-order-item {
    padding: 8px 12px;
    margin: 4px 0;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: move;
    display: flex;
    align-items: center;
    gap: 8px;
}

.line-order-item.dragging {
    opacity: 0.5;
}

.line-order-color {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #999;
}

.line-order-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.line-order-buttons button {
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
    cursor: pointer;
}

.line-order-buttons button:hover {
    background-color: #f0f0f0;
}

.line-order-buttons button.primary {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

.line-order-buttons button.primary:hover {
    background-color: #1d4ed8;
}

