:root {
    --bg-color: #050505;
    --term-color: #a5d6ff;
    --cmd-color: #33ff00;
    --flight-color: #ffcc00;
    --radar-bg: #001100;
    --radar-dim: #004400;
    --font-stack: 'Courier New', Courier, monospace;
}

body {
    background-color: #000;
    margin: 0;
    height: 100vh;
    overflow: hidden;
    font-family: var(--font-stack);
    color: var(--term-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

#monitor {
    width: 100%;
    height: 100%;
    position: relative;
    background: var(--bg-color);
    box-shadow: inset 0 0 100px rgba(0,0,0,0.9);
}

/* CRT Scanline Effect */
#monitor::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 99;
    pointer-events: none;
    background-size: 100% 2px, 3px 100%;
}

.screen-content {
    padding: 2rem;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-y: hidden;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    text-shadow: 0 0 2px rgba(165, 214, 255, 0.3);
}

.output-area {
    flex-grow: 1;
    overflow-y: auto;
    scrollbar-width: none;
    padding-bottom: 20px;
}

.output-area::-webkit-scrollbar { display: none; }

.line {
    margin-bottom: 5px;
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.4;
}

.prompt, input {
    color: var(--cmd-color);
    font-weight: bold;
    text-shadow: 0 0 5px var(--cmd-color);
    font-family: inherit;
    font-size: inherit;
}

input {
    background: transparent;
    border: none;
    flex-grow: 1;
    outline: none;
}

#input-line {
    display: none;
    margin-top: 10px;
    align-items: center;
}

/* Modules */
.module-box {
    border: 1px solid var(--term-color);
    padding: 10px;
    margin: 10px 0;
    background: rgba(0, 20, 50, 0.2);
    font-size: 12px;
}

#market-module {
    display: none;
    height: 150px;
    overflow: hidden;
    border-color: var(--cmd-color);
}

#radar-module {
    display: none;
    flex-direction: row;
    gap: 20px;
    margin-top: 20px;
    height: 350px;
}

canvas {
    background: var(--radar-bg);
    border: 2px solid var(--radar-dim);
    border-radius: 50%;
    cursor: crosshair;
}

#radar-info {
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 12px;
}

.status-box {
    border: 1px solid var(--radar-dim);
    padding: 10px;
    background: rgba(0, 20, 0, 0.5);
    color: #aaa;
}

.hl-green { color: #0f0; }
.hl-red { color: #f33; }
.hl-blue { color: #58a6ff; }
.hl-amber { color: var(--flight-color); }
.progress-bar { color: var(--cmd-color); }

a { color: inherit; text-decoration: underline; cursor: pointer; }
