.text-gradient-physics { background: linear-gradient(135deg, #f59e0b, #ef4444, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.phys-tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 8px; }
.phys-tab-btn { padding: 8px 14px; border: 1px solid var(--color-border); border-radius: 8px; background: transparent; color: var(--color-text); cursor: pointer; transition: all 0.3s; font-size: 0.85rem; }
.phys-tab-btn:hover { border-color: #f59e0b; }
.phys-tab-btn.active { background: linear-gradient(135deg, #f59e0b, #ef4444); color: white; border-color: transparent; }
.sim-layout { display: grid; grid-template-columns: 1fr 280px; gap: 16px; }
.sim-canvas-wrap { padding: 0; overflow: hidden; }
.sim-canvas-wrap canvas { width: 100%; display: block; border-radius: 12px 12px 0 0; }
.sim-controls { display: flex; gap: 8px; padding: 12px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--color-border); }
.sim-params { padding: 20px; }
.param-row { margin-bottom: 14px; }
.param-row label { display: block; font-size: 0.85rem; margin-bottom: 4px; color: var(--color-text-secondary); }
.param-row input[type="range"] { width: 100%; }
.param-row select { width: 100%; }
.result-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem; }
.result-row strong { color: #f59e0b; }
.proj-results { margin-top: 12px; }
.circuit-display { padding: 20px; display: flex; align-items: center; justify-content: center; min-height: 300px; }
.circuit-visual { text-align: center; }
.circuit-battery { font-size: 2rem; margin-bottom: 16px; }
.circuit-battery span:last-child { display: block; font-size: 0.9rem; color: var(--color-text-secondary); }
.circuit-wires { display: flex; gap: 24px; justify-content: center; margin: 16px 0; }
.circuit-wires.parallel { flex-direction: row; }
.circuit-wires.series { flex-direction: column; align-items: center; }
.circuit-resistor { padding: 16px 24px; border: 2px solid var(--color-border); border-radius: 12px; background: rgba(255,255,255,0.03); text-align: center; }
.circuit-resistor span:first-child { font-size: 2rem; display: block; }
.circuit-flow { margin-top: 12px; color: #f59e0b; font-weight: bold; }
.spectrum-display { padding: 24px; }
.spectrum-bar { display: flex; height: 50px; border-radius: 8px; overflow: hidden; margin: 16px 0; }
.spectrum-band { flex: 1; display: flex; align-items: center; justify-content: center; transition: all 0.3s; cursor: pointer; }
.spectrum-band:hover { flex: 2; }
.spectrum-band-label { font-size: 1.2rem; }
.spectrum-result { padding: 16px; border: 2px solid; border-radius: 12px; margin-top: 12px; }
.spectrum-emoji { font-size: 2rem; }
.color-swatch { width: 100%; height: 30px; border-radius: 6px; margin-top: 8px; }
.wave-info { padding: 12px; font-size: 0.85rem; }
@media (max-width: 768px) { .sim-layout { grid-template-columns: 1fr; } }
