﻿/*body {
}
*/
.toolbox {
    background: #1f2937;
    color: #fff;
    min-height: 500px;
    padding: 10px;
}

    .toolbox .node {
        background: #374151;
        padding: 10px;
        margin-bottom: 8px;
        cursor: grab;
        border-radius: 4px;
    }

#canvas {
    border: 2px dashed #9ca3af;
    height: 600px; /* 🔥 FIX */
    position: relative;
    background: #f9fafb;
    overflow: hidden;
    z-index: 1;
}

.canvas-node {
    position: absolute;
    padding: 10px;
    background: #3b82f6;
    color: #fff;
    border-radius: 4px;
    cursor: move;
    z-index: 10;
}

    .canvas-node.condition {
        width: 120px;
        height: 120px;
        background: #3b82f6;
        position: absolute;
        transform: rotate(45deg);
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        /* Center text properly */
        .canvas-node.condition span {
            transform: rotate(-45deg);
            font-weight: 600;
            color: white;
            text-align: center;
            width: 100%;
            pointer-events: none;
        }

.flow-label {
    background: #e5e7eb;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid #94a3b8;
}


.jtk-endpoint {
    cursor: crosshair;
}

.node-title {
    pointer-events: none;
}

.node-handle {
    width: 10px;
    height: 10px;
    background: #111827;
    border-radius: 50%;
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    cursor: crosshair;
    z-index: 20;
}

/* YES handle */
.yes-handle {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: green;
    border-radius: 50%;
    cursor: crosshair;
}

.no-handle {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: red;
    border-radius: 50%;
    cursor: crosshair;
}

.yes-handle::after {
    content: "YES";
    position: absolute;
    left: 12px;
    top: -6px;
    font-size: 10px;
    color: #16a34a;
}

.no-handle::after {
    content: "NO";
    position: absolute;
    top: -16px;
    left: -6px;
    font-size: 10px;
    color: #dc2626;
}
