/* BJT NPN Simulation – requirements: max-width 800px, Courier New, local scope */
#content_sim {
    max-width: 800px;
}

#content_sim .bjt-lab {
    max-width: 800px;
    margin: 0 auto;
    padding: 12px;
    font-family: 'Courier New', monospace;
    background-color: #1a1a1a;
    color: #e0e0e0;
}

#content_sim .bjt-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 16px;
    background: #1a1a1a;
    padding: 16px;
    border-radius: 8px;
}

#content_sim .bjt-control-panel {
    background: #2d2d2d;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #444;
    font-family: 'Courier New', monospace;
}

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

#content_sim .bjt-row label {
    color: #ccc;
    font-size: 12px;
    min-width: 72px;
}

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

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

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

#content_sim .bjt-val {
    flex-shrink: 0;
    min-width: 52px;
    color: #00ff00;
    font-size: 12px;
}

#content_sim .bjt-select {
    flex: 1;
    min-width: 80px;
    padding: 4px 6px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: #333;
    color: #e0e0e0;
    border: 1px solid #555;
    border-radius: 4px;
    outline: none;
}

#content_sim .bjt-select option {
    background: #2d2d2d;
    color: #e0e0e0;
}

#content_sim .bjt-data-readout {
    font-family: 'Courier New', monospace;
    color: #00ff00;
    font-size: 11px;
    margin-top: 6px;
}

#content_sim .bjt-canvas-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

#content_sim .bjt-canvas-wrap {
    width: 100%;
    height: 540px;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

#content_sim .bjt-canvas-wrap canvas {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

#content_sim .bjt-curve-wrap {
    width: 100%;
    height: 220px;
    margin-top: 0px;
    background: #0a0a0a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 8px;
    box-sizing: border-box;
}

#content_sim .bjt-curve-label {
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
}

#content_sim .bjt-curve-wrap canvas {
    display: block;
    width: 100%;
    height: calc(100% - 20px);
    border-radius: 4px;
}

#content_sim .bjt-scope-wrap {
    width: 100%;
    height: 220px;
    background: #0a0a0a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 8px;
    box-sizing: border-box;
}

#content_sim .bjt-scope-label {
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
}

#content_sim .bjt-scope-wrap canvas {
    display: block;
    width: 100%;
    height: calc(100% - 20px);
    border-radius: 4px;
    background: #000;
}
