/* circuit-styles.css */

/* Tooltip for Canvas Interaction */
#tooltip {
    position: fixed;
    /* Fixed to allow following mouse easily */
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    pointer-events: none;
    display: none;
    font-size: 0.85rem;
    z-index: 1000;
    font-family: sans-serif;
}

/* Result Cards Layout */
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.result-card {
    background: #fff;
    padding: 10px 5px;
    border: 1px solid #ddd;
    border-top-width: 4px;
    /* Colored top border indicator */
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.result-val {
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 5px;
    color: #333;
}

/* Equation Box Style */
.equation-box {
    background: #f1f3f5;
    padding: 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    color: #444;
    line-height: 1.5;
    font-size: 0.9em;
    border-left: 4px solid #aaa;
    overflow-x: auto;
}

/* Custom HTML Matrix Layout (Non-conflicting) */
.circuit-matrix-container {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
}

.circuit-matrix-block {
    display: flex;
    flex-direction: column;
}

.circuit-matrix-row {
    display: flex;
    justify-content: center;
}

.circuit-matrix-cell {
    display: inline-block;
    width: 45px;
    text-align: right;
    padding: 2px 4px;
}

.circuit-matrix-op {
    margin: 0 8px;
    font-weight: bold;
    color: #555;
}

.circuit-bracket {
    border: 2px solid #333;
    width: 8px;
    margin: 0 2px;
}

.circuit-bracket.left {
    border-right: none;
}

.circuit-bracket.right {
    border-left: none;
}