/* css/tree-viz.css */

/* --- LAYOUT --- */
/* Container für das Canvas, erlaubt Scrolling und Dragging */
.viz-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ecf0f1;
    position: relative;
    overflow: auto; /* Scrollbars wenn nötig */
    cursor: grab;
}

.viz-container:active {
    cursor: grabbing;
}

.viz-canvas {
    display: block;
    /* Schatten für bessere Sichtbarkeit auf dem Hintergrund */
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    background: white;
}

/* --- DARK TOOLBAR VARIANT ---
   Für Seiten ohne viz-playground.css (z.B. rotatebox-viz):
   Setzt explizit dunklen Hintergrund + helle Schrift. */
.viz-toolbar--dark {
    background: var(--color-sidebar-header, #34495e) !important;
    color: white !important;
}

/* --- IFRAME IN VIZ-CONTAINER --- */
.viz-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.viz-control-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Checkbox Gruppen */
.viz-checkboxes {
    display: flex;
    gap: 15px;
    margin-left: 10px;
}

.viz-checkbox-label {
    font-size: 0.9rem;
    color: #ecf0f1;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Stats Anzeige */
.viz-stats {
    font-size: 0.9rem;
    color: #f1c40f;
    font-weight: bold;
    margin-left: auto;
    margin-right: 20px;
}