/* Ampere's Law / Lorentz Force Simulation - Lab-bench aesthetic, scoped */
/* requirements.txt: max width of the simulation area = 800 pixel */

#content_sim {
    max-width: 800px;
}

#content_sim .amperes-lab {
    max-width: 800px;
    margin: 0 auto;
    padding: 12px;
    font-family: 'Courier New', monospace;
    background-color: #000000;
    color: #ffffff;
}

#content_sim .amperes-controls {
    background-color: #111111;
    border: 1px solid #444444;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 12px;
}

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

#content_sim .amperes-row:last-child {
    margin-bottom: 0;
}

#content_sim .amperes-row label {
    color: #cccccc;
    font-size: 13px;
    min-width: 100px;
    font-family: 'Courier New', monospace;
}

#content_sim .amperes-row input[type="checkbox"] {
    margin-right: 6px;
    cursor: pointer;
}

#content_sim .amperes-row input[type="range"] {
    flex: 1;
    min-width: 120px;
    height: 5px;
    background: #333333;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

#content_sim .amperes-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #00cc00;
    border-radius: 50%;
    cursor: pointer;
}

#content_sim .amperes-row input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #00cc00;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

#content_sim .amperes-row span.amperes-val {
    min-width: 48px;
    color: #00ff00;
    font-size: 13px;
    font-family: 'Courier New', monospace;
}

#content_sim .amperes-3d-wrap {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 400px;
    background: #000000;
    border: 1px solid #333333;
    border-radius: 4px;
}

#content_sim .amperes-canvas-container {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 0;
}

#content_sim .amperes-fbi-plot {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 80px;
    z-index: 5;
    pointer-events: none;
    background: rgba(10, 10, 10, 0.92);
    border-top: 1px solid #333333;
}

#content_sim .amperes-cam-btns {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    pointer-events: auto;
}

#content_sim .amperes-cam-btn {
    pointer-events: auto;
}

#content_sim .amperes-cam-btns .amperes-cam-btn {
    width: 32px;
    height: 28px;
    padding: 0;
    font-size: 11px;
    font-family: 'Courier New', monospace;
    background: #222222;
    color: #00cc00;
    border: 1px solid #444444;
    border-radius: 3px;
    cursor: pointer;
}

#content_sim .amperes-cam-btn:hover {
    background: #333333;
    color: #ffffff;
}

/* Lorentz / RHR overlay (Right-Hand Rule legend and force readout) */
#content_sim .lorentz-ui {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

#content_sim .rhr-legend {
    margin-bottom: 8px;
}

#content_sim .legend-item {
    margin-bottom: 4px;
}

#content_sim .legend-item .box {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 6px;
    vertical-align: middle;
}

#content_sim .legend-item .box.blue {
    background: #0077ff;
}

#content_sim .legend-item .box.red {
    background: #ff3333;
}

#content_sim .legend-item .box.green {
    background: #33ff33;
}

#content_sim .vector-readout {
    font-size: 11px;
    color: #aaaaaa;
}

#content_sim .vector-readout #force-val {
    color: #33ff33;
}

#content_sim .amperes-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

#content_sim .amperes-btn {
    padding: 6px 12px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    background: #222222;
    color: #00cc00;
    border: 1px solid #444444;
    border-radius: 3px;
    cursor: pointer;
}

#content_sim .amperes-btn:hover {
    background: #333333;
    color: #ffffff;
}

#content_sim .amperes-force-text {
    font-size: 13px;
    color: #33ff33;
    font-family: 'Courier New', monospace;
}

#content_sim .amperes-select {
    font-family: 'Courier New', monospace;
    background: #222222;
    color: #ffffff;
    border: 1px solid #444444;
    padding: 4px 8px;
    min-width: 160px;
}
