/* ============================================================
   2D Vector Field — Animation-Specific Styles
   ============================================================ */

#main-canvas {
    position: absolute;
    top: 0;
    left: 0;
    cursor: crosshair;
}

/* --- Status bar --- */
#status-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 26px;
    background: rgba(17, 24, 39, 0.92);
    border-top: 1px solid #1e293b;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 20px;
    font-size: 11px;
    font-family: 'Consolas', monospace;
    color: #64748b;
    z-index: 10;
}
#status-bar .hl { color: #60a5fa; }
#status-bar .sep { color: #334155; }

/* --- Formula display on canvas --- */
#formula-display {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 5px 16px;
    font-family: 'Cambria Math', 'Times New Roman', serif;
    font-size: 16px;
    color: #e2e8f0;
    z-index: 5;
    pointer-events: none;
    white-space: nowrap;
}

/* --- Color Legend (overlay on canvas) --- */
#color-legend {
    position: absolute;
    bottom: 34px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 6;
    pointer-events: none;
}
.legend-block {
    background: rgba(17, 24, 39, 0.88);
    border: 1px solid #334155;
    border-radius: 5px;
    padding: 5px 10px 4px;
    min-width: 140px;
}
.legend-title {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
    text-align: center;
}
.legend-bar {
    height: 10px;
    border-radius: 3px;
    margin-bottom: 2px;
}
.legend-labels {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    font-family: 'Consolas', monospace;
    color: #64748b;
}
