/**
 * Maxwell's Equations – Lab dashboard (dark theme, local scope)
 */
#content_sim #maxwell-simulation,
#maxwell-simulation {
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace;
}

#content_sim .maxwell-lab,
#maxwell-simulation .maxwell-lab {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
    background: #050505;
    border: 1px solid #333;
    border-radius: 8px;
    color: #eee;
    max-width: 800px;
}

#content_sim .maxwell-controls,
#maxwell-simulation .maxwell-controls {
    width: 220px;
    min-width: 220px;
    padding: 12px;
    background: rgba(20, 20, 25, 0.9);
    border: 1px solid #444;
    border-radius: 6px;
}

#content_sim .maxwell-controls h3,
#maxwell-simulation .maxwell-controls h3 {
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #00aaff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#content_sim .maxwell-row,
#maxwell-simulation .maxwell-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

#content_sim .maxwell-row label,
#maxwell-simulation .maxwell-row label {
    min-width: 100px;
    font-size: 11px;
    color: #aaa;
}

#content_sim .maxwell-row input[type="range"],
#maxwell-simulation .maxwell-row input[type="range"] {
    flex: 1;
    min-width: 60px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #222;
    border-radius: 3px;
    outline: none;
}

#content_sim .maxwell-row input[type="range"]::-webkit-slider-thumb,
#maxwell-simulation .maxwell-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
}

#content_sim .maxwell-row select,
#maxwell-simulation .maxwell-row select {
    flex: 1;
    min-width: 0;
    padding: 6px 8px;
    background: #222;
    border: 1px solid #444;
    border-radius: 4px;
    color: #eee;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
}

#content_sim .maxwell-row input[type="number"],
#maxwell-simulation .maxwell-row input[type="number"] {
    width: 90px;
    padding: 6px 8px;
    background: #222;
    border: 1px solid #444;
    border-radius: 4px;
    color: #eee;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    box-shadow: none;
    -moz-appearance: textfield;
}

#content_sim .maxwell-row input[type="number"]::-webkit-outer-spin-button,
#content_sim .maxwell-row input[type="number"]::-webkit-inner-spin-button,
#maxwell-simulation .maxwell-row input[type="number"]::-webkit-outer-spin-button,
#maxwell-simulation .maxwell-row input[type="number"]::-webkit-inner-spin-button {
    opacity: 0.7;
    background: transparent;
}

#content_sim .maxwell-val,
#maxwell-simulation .maxwell-val {
    min-width: 36px;
    font-size: 11px;
    color: #0cf;
}

#content_sim .maxwell-eq-box,
#maxwell-simulation .maxwell-eq-box {
    margin-top: 12px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.4);
    border-left: 3px solid #007bff;
    font-size: 12px;
    color: #fff;
}

#content_sim .maxwell-stats,
#maxwell-simulation .maxwell-stats {
    margin-top: 8px;
    font-size: 11px;
    color: #0fc;
}

#content_sim .maxwell-curl-label,
#maxwell-simulation .maxwell-curl-label {
    margin-top: 6px;
    font-size: 11px;
    color: #88ccff;
    font-style: italic;
}

#content_sim .maxwell-pulse-status,
#maxwell-simulation .maxwell-pulse-status {
    font-size: 11px;
    color: #ffaa44;
    font-weight: 600;
}

#content_sim .maxwell-3d-wrap,
#maxwell-simulation .maxwell-3d-wrap {
    flex: 1;
    min-width: 320px;
    min-height: 360px;
    position: relative;
    background: #050505;
    border: 1px solid #333;
    border-radius: 6px;
}

#content_sim .maxwell-canvas-container,
#maxwell-simulation .maxwell-canvas-container {
    width: 100%;
    height: 100%;
    min-height: 360px;
}

#content_sim .maxwell-canvas-container canvas,
#maxwell-simulation .maxwell-canvas-container canvas {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

#content_sim .maxwell-cam-btns,
#maxwell-simulation .maxwell-cam-btns {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

#content_sim .maxwell-cam-btn,
#maxwell-simulation .maxwell-cam-btn {
    padding: 6px 10px;
    background: rgba(20, 20, 25, 0.85);
    border: 1px solid #444;
    border-radius: 4px;
    color: #eee;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    cursor: pointer;
}

#content_sim .maxwell-cam-btn:hover,
#maxwell-simulation .maxwell-cam-btn:hover {
    background: rgba(0, 122, 255, 0.3);
    border-color: #007bff;
}

#content_sim .maxwell-pulse-btn,
#maxwell-simulation .maxwell-pulse-btn {
    padding: 6px 12px;
    background: rgba(20, 20, 25, 0.9);
    border: 1px solid #444;
    border-radius: 4px;
    color: #eee;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    cursor: pointer;
}

#content_sim .maxwell-play-row,
#maxwell-simulation .maxwell-play-row {
    flex-wrap: nowrap;
}

#content_sim .maxwell-play-row .maxwell-pulse-btn,
#maxwell-simulation .maxwell-play-row .maxwell-pulse-btn {
    flex: 1;
    min-width: 0;
    padding: 6px 4px;
    font-size: 10px;
}

#content_sim .maxwell-pulse-btn:hover,
#maxwell-simulation .maxwell-pulse-btn:hover {
    background: rgba(255, 100, 100, 0.25);
    border-color: #f44;
}
