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

body {
    background: #1a1a1a;
    font-family: 'IBM Plex Mono', monospace;
    min-height: 100vh;
    overflow-x: hidden;
}

.panel-container {
    background: linear-gradient(180deg, #5a5a5a 0%, #4a4a4a 5%, #3d3d3d 95%, #333 100%);
    border: 4px solid #4a90d9;
    border-radius: 4px;
    box-shadow: 
        0 0 0 2px #333,
        0 0 0 4px #555,
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 20px 60px rgba(0,0,0,0.5);
    position: relative;
    padding: 20px 30px;
}

.panel-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(255,255,255,0.003) 2px,
        rgba(255,255,255,0.003) 4px
    );
    pointer-events: none;
}

.led {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3a0000;
    border: 1px solid #222;
    transition: all 0.05s;
    position: relative;
}

.led.on {
    background: radial-gradient(circle at 40% 35%, #ff6666, #ff0000 40%, #cc0000 70%, #990000);
    box-shadow: 
        0 0 4px #ff0000,
        0 0 8px #ff000088,
        0 0 12px #ff000044,
        inset 0 -1px 2px rgba(0,0,0,0.3);
}

.led.on::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 3px;
    width: 4px;
    height: 3px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
}

.toggle-switch {
    width: 14px;
    height: 40px;
    background: linear-gradient(180deg, #888 0%, #666 50%, #444 100%);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    border: 1px solid #333;
    transition: transform 0.1s;
    user-select: none;
}

.toggle-switch::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 6px;
    background: linear-gradient(180deg, #bbb, #999);
    border-radius: 2px;
}

.toggle-switch.up {
    transform: perspective(100px) rotateX(15deg);
    background: linear-gradient(180deg, #999 0%, #777 50%, #555 100%);
}

.toggle-switch.down {
    transform: perspective(100px) rotateX(-15deg);
    background: linear-gradient(180deg, #777 0%, #555 50%, #333 100%);
}

.toggle-switch.center {
    transform: perspective(100px) rotateX(0deg);
}

.control-switch {
    width: 18px;
    height: 44px;
    background: linear-gradient(180deg, #999 0%, #777 50%, #555 100%);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    border: 1px solid #333;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.control-switch.up {
    transform: perspective(100px) rotateX(20deg);
    box-shadow: 0 -2px 4px rgba(0,0,0,0.2), 0 4px 2px rgba(0,0,0,0.3);
}

.control-switch.down {
    transform: perspective(100px) rotateX(-20deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2), 0 -4px 2px rgba(0,0,0,0.1);
}

.logo-section {
    background: linear-gradient(180deg, #c0c0c0 0%, #a0a0a0 100%);
    border-top: 1px solid #888;
    padding: 8px 20px;
    margin: 0 -30px -20px;
    border-radius: 0 0 2px 2px;
}

.terminal {
    background: #0a0a0a;
    border: 2px solid #333;
    border-radius: 4px;
    font-family: 'IBM Plex Mono', monospace;
    color: #33ff33;
    padding: 12px;
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 13px;
    line-height: 1.4;
    text-shadow: 0 0 4px #33ff3366;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.terminal::after {
    content: '▋';
    animation: blink 1s infinite;
}

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

.memory-view {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    line-height: 1.6;
    background: #0d0d0d;
    color: #ccc;
    padding: 8px;
    border: 1px solid #333;
    border-radius: 4px;
    overflow-y: auto;
    max-height: 300px;
}

.memory-view .pc-highlight {
    background: #4a90d933;
    color: #4a90d9;
}

.drop-zone {
    border: 2px dashed #4a90d9;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.drop-zone.drag-over {
    background: #4a90d911;
    border-color: #6ab0f9;
}

.status-label {
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    color: #ccc;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@keyframes power-on-sweep {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.power-sweep .led {
    animation: power-on-sweep 0.1s ease-in-out;
}