:root {
    --space-bg: #0b0b14;
    --hull-bg: #141424;
    --panel-bg: #1c1c34;
    --neon-glow: #00f2ff;
    --neon-purple: #a370f7;
    --text-main: #e2e8f0;
    --text-muted: #64748b;
    --laser-red: #ff3b3b;
    --engine-green: #39ff14;
}

body {
    font-family: 'Courier New', Courier, monospace, system-ui;
    max-width: 750px;
    margin: 40px auto;
    padding: 0 20px;
    background: var(--space-bg);
    color: var(--text-main);
    background-image: 
        radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px),
        radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px),
        radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 40px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
}

h2 {
    color: var(--neon-glow);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.4);
    margin-bottom: 5px;
}

.subtitle {
    color: var(--text-muted);
    margin-top: 0;
    font-size: 13px;
    text-transform: uppercase;
}

.telemetry-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 20px;
    background: #e65100;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.console-panel {
    background-color: var(--hull-bg);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #2e2e4f;
    margin-bottom: 25px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

h3{
    margin-top: 0;
    font-size: 16px;
    color: var(--neon-purple);
    text-transform: uppercase;
    letter-spacing: 1px;
}

button {
    background: var(--panel-bg);
    color: var(--text-main);
    border: 1px solid var(--neon-purple);
    padding: 12px 20px;
    font-size: 13px;
    font-weight: bold;
    font-family: inherit;
    border-radius: 6px;
    cursor: pointer;
    margin: 5px 10px 5px 0;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

button:hover:not(:disabled) {
    background: var(--neon-purple);
    box-shadow: 0 0 12px rgba(163, 112, 247, 0.5);
    color: #000;
}

#start-btn { 
    border-color: var(--engine-green);
    color: var(--engine-green);
}

#start-btn:hover:not(:disabled) {
    background: var(--engine-green);
    color: #000;
    box-shadow: 0 0 12px rgba(57,255,20,0.5);
}

#stop-btn {
    border-color: var(--laser-red);
    color: var(--laser-red);
}

#stop-btn:hover:not(:disabled) {
    background: var(--laser-red);
    color: #000;
    box-shadow: 0 0 12px rgba(255, 59, 59, 0.5);
}

#ai-btn {
    border-color: var(--neon-glow);
    color: var(--neon-glow);
}

#ai-btn:hover:not(:disabled) {
    background: var(--neon-glow);
    color: #000;
    box-shadow: 0 0 12px rgba(0, 242, 255, 0.5);
}

#copy-btn {
    border-color: var(--text-muted);
    color: var(--text-main);
}

button:disabled {
    border-color: #333 !important;
    color: #555 !important;
    cursor: not-allowed;
    background: #111;
    box-shadow: none !important;
}

#comms-status {
    font-size: 12px;
    color: var(--text-muted);
    margin: 12px 0;
    text-transform: uppercase;
}

textarea {
    width: 100%;
    height: 130px;
    background: var(--space-bg);
    color: #fff;
    border: 1px solid #2e2e4f;
    border-radius: 6px;
    padding: 12px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: inherit;
    margin-top: 10px;
    resize: vertical;
    line-height: 1.5;
}

textarea:focus {
    outline: none;
    border-color: var(--neon-glow);
}

.quantum-output {
    background: #0d0d18;
    border-left: 4px solid var(--neon-glow);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    line-height: 1.7;
    font-size: 14px;
    border-top: 1px solid #1f1f38;
    border-right: 1px solid #1f1f38;
    border-bottom: 1px solid #1f1f38;
}

.section-header{
    color: var(--neon-glow);
    font-weight: bold;
    margin: 15px 0 5px 0;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 20px;
    background: #e65100;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.output-box {
    background: #0d0d18;
    border-left: 4px solid var(--neon-glow);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    line-height: 1.7;
    font-size: 14px;
    border-top: 1px solid #1f1f38;
    border-right: 1px solid #1f1f38;
    border-bottom: 1px solid #1f1f38;
}