/* Interactive Canvas Tool - Basis-Styling für Diagramme */

/* Canvas Container */
.canvas-container, #canvas, .canvas, .interactive-canvas, #simplified-flow, #dream-flow, #mechanistic-flow, #systemic-flow, #email-flow {
    position: relative;
    width: 100%;
    height: 400px;
}

/* Auto-spacing modifier class - activates automatic box distance management */
.auto-spacing {
    /* No visual changes, just a marker class for JavaScript functionality */
}

/* Canvas Größen */
.canvas-sm { height: 200px; }
.canvas-md { height: 300px; }
.canvas-lg { height: 400px; }
.canvas-xl { height: 500px; }
.canvas-full { height: 600px; }

/* Box-Elemente */
.canvas-container .box, #canvas .box, .canvas .box, .interactive-canvas .box, #simplified-flow .box, #dream-flow .box, #mechanistic-flow .box, #systemic-flow .box, #email-flow .box {
    position: absolute;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid;
    text-align: center;
    color: var(--color-text-primary);
    font-size: 1rem;
    line-height: 1.2;
    user-select: none;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    z-index: 1;
}

/* Debug-Transparenz entfernt */

/* Clickable Boxes - Deaktiviert für einfache Anzeige */
.clickable-box {
    cursor: default;
}

/* Inactive State */
.box.inactive {
    opacity: 0.4;
    filter: grayscale(70%);
}

/* Fixed/Central Boxes */
.fixed-box {
    cursor: default !important;
    opacity: 0.8;
}

/* Canvas Element */
.canvas-container canvas, #canvas canvas, .canvas canvas, .interactive-canvas canvas, #simplified-flow canvas, #dream-flow canvas, #mechanistic-flow canvas, #systemic-flow canvas, #email-flow canvas {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Draggable Elements (falls verwendet) */
.draggable-box {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid;
    text-align: center;
    color: var(--color-text-primary);
    font-size: 0.9rem;
    user-select: none;
    cursor: grab;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.draggable-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.draggable-box:active {
    cursor: grabbing;
}

/* Responsive */
@media (max-width: 768px) {
    .canvas-lg { height: 300px; }
    .canvas-xl { height: 350px; }
    .canvas-full { height: 400px; }
    
    .canvas-container .box, #canvas .box, .canvas .box, .interactive-canvas .box, #simplified-flow .box, #dream-flow .box, #mechanistic-flow .box, #systemic-flow .box, #email-flow .box {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
}