#situationsContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.bullet {
    width: 140px;
    height: 60px;
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    margin: 10px;
    font-size: 16px;
    text-align: center;
    word-wrap: break-word;
    user-select: none;
    touch-action: none;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.25s,
        box-shadow 0.25s;
}

.bullet:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Special bullet to add a new node */
.add-node-button {
    background-color: #28a745 !important;
    background: #28a745;
}

.add-node-button:hover {
    background-color: #218838 !important;
    background: #28a745;
}

/* 4) (Optional) 3D tilt container */
.diagram-3d {
    perspective: 1px;
    /* or remove if not using real 3D transforms */
}

/* The main svg area (with a slight 3D tilt for demonstration) */

.svg-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: auto;
    padding: 20px;
}
#svgCanvas {
    flex-grow: 1;
    max-height: calc(100% - 150px);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transform: rotateX(20deg) translateY(20px);
    transform-style: preserve-3d;
    touch-action: none;
}

/* 5) Axis lines & text */
.axis path,
.axis line {
    stroke: #34495e;
    stroke-width: 1;
}

.axis text {
    fill: #2f3842;
    /* White font color */
    font-size: 24px;
    /* Larger ticks */
    font-weight: 600;
}

.grid line {
    stroke: #bdc3c7;
    opacity: 1;
}

/* Axis labels */
.axis-label {
    fill: #2f3842;
    font-size: 28px;
    font-weight: 700;
}

/* 6) Node groups */
.node {
    pointer-events: all;
}

/* Node rectangles */
.node rect {
    rx: 10;
    ry: 10;
    fill: #3498db;
    stroke: #2980b9;
    stroke-width: 2;
    transition:
        fill 0.3s,
        stroke 0.3s,
        transform 0.3s;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.node:hover rect {
    transform: translateY(-2px) scale(1.02);
}

/* Selected node style */
.node.selected rect {
    fill: #ff5733 !important;
    stroke: #c70039 !important;
}

/* Node text */
.node text {
    font-size: 16px;
    fill: #000000;
    pointer-events: none;
    user-select: none;
    text-anchor: middle;
}

/* 7) Disable text selection for bullets and children */
.bullet,
.bullet * {
    user-select: none !important;
    touch-action: none !important;
    -webkit-user-select: none !important;
    -ms-user-select: none !important;
}

rect {
    touch-action: none;
    /* Prevent default touch behaviors */
}
