:root {
    --panel-bg: #1a2332;
    --panel-border: #2a3a4e;
    --chrome: #8899aa;
    --led-on: #ff2200;
    --led-off: #330800;
    --led-glow: 0 0 8px #ff4400, 0 0 16px #ff220088;
    --terminal-green: #33ff33;
    --terminal-bg: #0a0a0a;
    --switch-up: #ccddee;
    --switch-down: #556677;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #0d1520;
    font-family: 'IBM Plex Mono', monospace;
    color: #ddeeff;
    min-height: 100vh;
}

.brushed-metal {
    background: linear-gradient(135deg, #1a2a3d 0%, #0f1a28 50%, #1a2a3d 100%);
    background-size: 4px 4px;
}

.panel-surface {
    background: linear-gradient(180deg, #1e2d40 0%, #162233 50%, #1a2838 100%);
    border: 2px solid #2a4060;
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 4px 20px rgba(0,0,0,0.5);
}

.led {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transition: all 0.05s;
}

.led-on {
    background: radial-gradient(circle at 40% 40%, #ff6644, #ff2200, #cc0000);
    box-shadow: var(--led-glow);
}

.led-off {
    background: radial-gradient(circle at 40% 40%, #441100, #220800, #110400);
    border: 1px solid #221100;
}

.toggle-switch {
    width: 20px;
    height: 36px;
    background: linear-gradient(180deg, #667788, #445566, #334455);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    border: 1px solid #556677;
    transition: all 0.1s;
}

.toggle-switch.up {
    background: linear-gradient(180deg, #aabbcc, #8899aa, #667788);
    box-shadow: 0 -2px 4px rgba(255,255,255,0.2);
}

.toggle-switch.up::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 3px;
    right: 3px;
    height: 14px;
    background: linear-gradient(180deg, #ddeeff, #bbccdd);
    border-radius: 3px;
}

.toggle-switch.down::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 3px;
    right: 3px;
    height: 14px;
    background: linear-gradient(180deg, #556677, #445566);
    border-radius: 3px;
}

.ctrl-btn {
    padding: 6px 12px;
    background: linear-gradient(180deg, #5577aa, #334466);
    border: 1px solid #6688bb;
    border-radius: 4px;
    color: #ddeeff;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.1s;
    user-select: none;
}

.ctrl-btn:hover {
    background: linear-gradient(180deg, #6688bb, #445577);
}

.ctrl-btn:active {
    background: linear-gradient(180deg, #334466, #223355);
    transform: translateY(1px);
}

.ctrl-btn.run {
    background: linear-gradient(180deg, #44aa44, #226622);
    border-color: #55bb55;
}

.ctrl-btn.stop {
    background: linear-gradient(180deg, #aa4444, #662222);
    border-color: #bb5555;
}

.terminal-output {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: var(--terminal-green);
    background: var(--terminal-bg);
    border: 1px solid #1a3a1a;
    padding: 8px;
    height: 150px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
    border-radius: 4px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
}

.memory-viewer {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--terminal-green);
    background: var(--terminal-bg);
    border: 1px solid #1a3a1a;
    padding: 8px;
    height: 250px;
    overflow-y: auto;
    border-radius: 4px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
}

.memory-viewer .pc-highlight {
    background: #1a4a1a;
    color: #88ff88;
}

.memory-viewer .bp-highlight {
    background: #4a1a1a;
    color: #ff8888;
}

.drop-zone {
    border: 2px dashed #4466aa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(30, 50, 80, 0.3);
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: #6699dd;
    background: rgba(40, 70, 110, 0.4);
}

.flag-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.flag-on {
    background: #1a4a1a;
    color: #44ff44;
    border: 1px solid #33aa33;
}

.flag-off {
    background: #1a1a1a;
    color: #446644;
    border: 1px solid #223322;
}

.status-led-label {
    font-size: 8px;
    text-align: center;
    color: #8899aa;
    margin-top: 2px;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0f14;
}
::-webkit-scrollbar-thumb {
    background: #2a4060;
    border-radius: 4px;
}