/* Faraday's Law Simulation - Lab-bench aesthetic, scoped to avoid global clash */

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

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

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

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

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

#content_sim .faraday-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 .faraday-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 .faraday-row input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #00cc00;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

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

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

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

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

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

#content_sim .faraday-cam-btns .faraday-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 .faraday-cam-btn:hover {
    background: #333333;
    color: #ffffff;
}

#content_sim .faraday-voltmeter-wrap {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 10;
    background: #f0f0f0;
    border: 6px solid #444444;
    border-radius: 8px;
    padding: 4px;
}

#content_sim .faraday-voltmeter-wrap .faraday-readout {
    font-size: 12px;
    font-family: 'Courier New', monospace;
    color: #000000;
    text-align: center;
    font-weight: bold;
}

#content_sim #faraday-voltmeter-svg {
    display: block;
}

#content_sim .faraday-graphs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

#content_sim .faraday-graph-box {
    flex: 1;
    min-width: 280px;
    background: #111111;
    border: 1px solid #444444;
    border-radius: 4px;
    padding: 8px;
}

#content_sim .faraday-graph-box h4 {
    margin: 0 0 6px 0;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    color: #aaaaaa;
}

#content_sim .faraday-graph-canvas {
    width: 100%;
    height: 100px;
    background: #0a0a0a;
    border-radius: 2px;
    display: block;
}

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

#content_sim .faraday-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 .faraday-btn:hover {
    background: #333333;
    color: #ffffff;
}

#content_sim .faraday-btn.faraday-btn-run {
    font-weight: bold;
}

#content_sim .faraday-emf-text {
    font-size: 14px;
    font-weight: bold;
    color: #00ff00;
    font-family: 'Courier New', monospace;
}

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