:root {
    --bg-black: #050a0f;
    --panel-blue: #0b1924;
    --text-main: #98c9e2;
    --accent-cyan: #00ffff;
    --border-blue: #1c3d52;
}

body, html { margin: 0; padding: 0; background: var(--bg-black); color: var(--text-main); font-family: sans-serif; text-transform: uppercase; }

.medical-header { width: 100%; padding: 15px; background: var(--panel-blue); border-bottom: 1px solid var(--border-blue); display: flex; justify-content: space-between; position: sticky; top:0; z-index:100; box-sizing: border-box; }

.medical-panel { background: var(--panel-blue); border: 1px solid var(--border-blue); padding: 20px; border-radius: 4px; margin: 20px auto; width: 90%; max-width: 900px; box-sizing: border-box; }

.medical-btn { display: block; width: 100%; background: transparent; border: 1px solid var(--accent-cyan); color: var(--accent-cyan); padding: 10px; margin-bottom: 8px; cursor: pointer; font-size: 11px; text-decoration: none; box-sizing: border-box; }
.medical-btn.active { background: var(--accent-cyan); color: #000; }

/* Novo Switch Sun/Moon */
.theme-switch { position: relative; display: inline-block; width: 44px; height: 22px; }
.theme-switch input { opacity: 0; width: 0; height: 0; }
.slider.round { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #1c3d52; transition: .4s; border-radius: 20px; border: 1px solid var(--accent-cyan); }
.slider.round:before { position: absolute; content: ""; height: 14px; width: 14px; left: 4px; bottom: 3px; background: var(--accent-cyan); transition: .4s; border-radius: 50%; }
input:checked + .slider { background: #3d5a6d; }
input:checked + .slider:before { transform: translateX(20px); background: #ffcc00; box-shadow: 0 0 10px #ffcc00; }

.switch-container { display: flex; align-items: center; gap: 10px; }

/* Viewer UI Posicionamento */
#viewer-container { position: absolute; top:0; left:0; width:100%; height:100%; z-index:1; }
.top-left { position: absolute; top: 70px; left: 20px; width: 280px; z-index: 5; margin: 0; }
.bottom-left { position: absolute; bottom: 60px; left: 20px; width: 280px; z-index: 5; margin: 0; max-height: 40vh; overflow-y: auto; }