/**
 * FlowChart CSS - Minimal styles for FlowChart library
 * Most styling is done via Canvas, these are just for DOM elements.
 */

/* Container */
.flowchart {
    position: relative;
    font-family: "Google Sans Code", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Tooltip */
.flowchart-tooltip {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #333);
    border: 1px solid var(--bs-border-color, #ddd);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    white-space: nowrap;
}

/* Dark mode tooltip */
[data-bs-theme="dark"] .flowchart-tooltip {
    background: var(--bs-body-bg, #1a1a1a);
    border-color: var(--bs-border-color, #444);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Legend */
.flowchart-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 8px 0;
    font-size: 12px;
}

.flowchart-legend>div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.flowchart-legend-value {
    font-weight: 500;
    min-width: 60px;
    color: var(--bs-body-color, #333);
}

/* Canvas cursor */
.flowchart canvas {
    cursor: crosshair;
}

/* Responsive */
@media (max-width: 576px) {
    .flowchart-legend {
        gap: 8px;
        font-size: 11px;
    }

    .flowchart-tooltip {
        font-size: 11px;
        padding: 6px 10px;
    }
}