/* Chemical Bonding – VSEPR & Molecular Geometry. Black background (requirements.txt), max-width 800px */
#content_sim {
    background: #000000;
}
#content_sim .bonding-module-select-row {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Courier New', monospace;
}
#content_sim .bonding-module-select-row label {
    font-weight: bold;
    color: #e0e0e0;
    margin-left: 20px;
}
#content_sim .bonding-module-select-row select {
    background: #000000;
    color: #00d4aa;
    border: 1px solid #333;
    padding: 6px 10px;
    border-radius: 4px;
    min-width: 260px;
}
#content_sim .bonding-lab {
    max-width: 800px;
    margin: 0 auto;
    background: #000000;
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #333;
}

#content_sim .bonding-lab h2 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #00d4aa;
    border-bottom: 1px solid #333;
    padding-bottom: 6px;
}

#content_sim .bonding-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}

#content_sim .bonding-controls {
    flex: 0 0 240px;
    background: #000000;
    padding: 14px;
    border-radius: 6px;
    border: 1px solid #333;
}

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

#content_sim .bonding-row label {
    min-width: 100px;
    color: #aaa;
    font-size: 12px;
}

#content_sim .bonding-val {
    color: #00d4aa;
    font-weight: bold;
    min-width: 20px;
}

#content_sim .bonding-controls hr {
    border: none;
    border-top: 1px solid #333;
    margin: 12px 0;
}

#content_sim .bonding-controls h4 {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #00d4aa;
}

#content_sim .bonding-row button {
    padding: 4px 10px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: #000000;
    color: #00d4aa;
    border: 1px solid #444;
    border-radius: 3px;
    cursor: pointer;
}

#content_sim .bonding-row button:hover {
    background: rgba(0, 212, 170, 0.15);
    border-color: #00d4aa;
}

#content_sim .bonding-controls select {
    background: #000000;
    color: #00d4aa;
    border: 1px solid #444;
    padding: 4px 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    min-width: 160px;
}

#content_sim .bonding-viz {
    flex: 1;
    min-width: 280px;
}

#content_sim .bonding-canvas-wrap {
    position: relative;
    max-width: 500px;
    min-height: 320px;
    background: #000000;
    border-radius: 6px;
    border: 1px solid #333;
    overflow: hidden;
}

#content_sim .bonding-canvas-wrap canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#content_sim #bonding-canvas-container {
    width: 100%;
    height: 320px;
}

#content_sim #bonding-hybrid-canvas-container {
    width: 100%;
    height: 320px;
}

#content_sim #bonding-physics-canvas-container {
    width: 100%;
    height: 320px;
}

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

#content_sim .bonding-cam-btn {
    padding: 4px 8px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    background: #000000;
    color: #00d4aa;
    border: 1px solid #444;
    border-radius: 3px;
    cursor: pointer;
}

#content_sim .bonding-cam-btn:hover {
    background: rgba(0, 212, 170, 0.2);
    border-color: #00d4aa;
}

#content_sim .bonding-info {
    margin-top: 8px;
    padding: 8px;
    background: #000000;
    border-radius: 4px;
    font-size: 12px;
    color: #ccc;
}

#content_sim .bonding-info .axe {
    color: #00d4aa;
    font-weight: bold;
}

#content_sim .bonding-info .geo-name {
    color: #ffb86c;
}

#content_sim .bonding-row input[type="checkbox"] {
    accent-color: #00d4aa;
}

#content_sim .bonding-row input[type="range"] {
    flex: 1;
    min-width: 80px;
    accent-color: #00d4aa;
}

#content_sim .bonding-row-opacity {
    flex-wrap: nowrap;
}
#content_sim .bonding-row-opacity input[type="range"] {
    max-width: 85px;
    flex: 0 1 85px;
    min-width: 60px;
}
#content_sim .bonding-row-opacity .bonding-val {
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
}

#content_sim .bonding-row-form-bond {
    justify-content: center;
}

#content_sim .bonding-detail-panel {
    margin-top: 10px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #ccc;
    line-height: 1.45;
    max-width: 500px;
}

#content_sim .bonding-detail-panel strong {
    color: #00d4aa;
}

@media (max-width: 640px) {
    #content_sim .bonding-container {
        flex-direction: column;
    }
    #content_sim .bonding-controls {
        flex: 1 1 auto;
    }
}
