* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    color: #00FF41;
    font-family: 'JetBrains Mono', monospace;
    min-height: 100vh;
    overflow-x: hidden;
}

/* CRT Scanline Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

.glow-text {
    text-shadow: 0 0 10px #00FF41, 0 0 20px #00FF41, 0 0 40px #00FF41;
}

.glow-text-subtle {
    text-shadow: 0 0 5px #00FF41, 0 0 10px rgba(0, 255, 65, 0.3);
}

.terminal-panel {
    background: #0d0d0d;
    border: 1px solid #004400;
    border-radius: 4px;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 255, 65, 0.05);
}

.drop-zone {
    border: 2px dashed #004400;
    transition: all 0.3s ease;
}

.drop-zone:hover, .drop-zone.drag-over {
    border-color: #00FF41;
    background: rgba(0, 255, 65, 0.03);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
}

.btn-green {
    background: #002200;
    border: 1px solid #00FF41;
    color: #00FF41;
    transition: all 0.2s;
}
.btn-green:hover {
    background: #003300;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.btn-yellow {
    background: #222200;
    border: 1px solid #FFFF00;
    color: #FFFF00;
    transition: all 0.2s;
}
.btn-yellow:hover {
    background: #333300;
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.3);
}

.btn-blue {
    background: #000022;
    border: 1px solid #4488FF;
    color: #4488FF;
    transition: all 0.2s;
}
.btn-blue:hover {
    background: #000044;
    box-shadow: 0 0 15px rgba(68, 136, 255, 0.3);
}

.btn-red {
    background: #220000;
    border: 1px solid #FF4444;
    color: #FF4444;
    transition: all 0.2s;
}
.btn-red:hover {
    background: #330000;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.3);
}

.register-changed {
    animation: flash-yellow 0.5s ease;
}

@keyframes flash-yellow {
    0% { color: #FFFF00; text-shadow: 0 0 10px #FFFF00; }
    100% { color: #00FF41; text-shadow: none; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.cursor-blink {
    animation: blink 1s infinite;
}

.terminal-output {
    font-size: 13px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-all;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: #004400;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #006600;
}

input[type="range"] {
    -webkit-appearance: none;
    background: #002200;
    height: 4px;
    border-radius: 2px;
    outline: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #00FF41;
    cursor: pointer;
    box-shadow: 0 0 8px #00FF41;
}

.hex-highlight {
    background: rgba(0, 255, 65, 0.15);
}

.log-alu { color: #00FFFF; }
.log-loadstore { color: #FF44FF; }
.log-branch { color: #FFFF00; }
.log-system { color: #FF4444; }