/* --- System Base Reset & Dull Textures --- */
body {
    background-color: #050505; /* Black abyss */
    color: #808080; /* Neutral, dead industrial grey */
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* --- Rigid Structure & Divider Aesthetics --- */
.bios-wrapper {
    width: 820px;
    background-color: #0d0d0d; /* Slightly lighter cold concrete black */
    padding: 20px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 1);
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.divider {
    color: #303030; /* Faint grey framework line */
    margin: 8px 0;
    user-select: none;
    white-space: pre;
}

.bios-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 15px;
    margin: 15px 0;
}

/* --- Panel Mechanics --- */
.bios-panel {
    display: flex;
    flex-direction: column;
    outline: none;
}

.panel-title, .panel-footer {
    color: #404040;
    white-space: pre;
    font-weight: bold;
    user-select: none;
    font-size: 13px;
}

.panel-content {
    background: #080808;
    border-left: 1px solid #252525;
    border-right: 1px solid #252525;
    padding: 15px;
    min-height: 220px;
    box-sizing: border-box;
}

/* --- Application Selection States --- */
.menu-item {
    cursor: pointer;
    margin: 8px 0;
    padding: 2px 5px;
    transition: color 0.1s ease;
    user-select: none;
    white-space: pre;
}

.menu-item.active {
    color: #ffffff !important; /* Sharp contrast white for active components */
    background-color: #1a1a1a;
}

/* --- Dynamic Content Area --- */
.display-container {
    position: relative;
}

.app-screen {
    display: none;
}

.app-screen.active-screen {
    display: block;
}

/* --- Conservative Palette Overrides --- */
.text-white { color: #ffffff; }
.text-dim { color: #555555; font-size: 12px; margin-top: 15px; }
.red-text { color: #9c1c1c; font-weight: bold; } /* Alert states */
.purple-text { color: #6a326a; } /* Void elements */

.bar-graph {
    color: #ffffff;
    letter-spacing: 1px;
    white-space: pre;
}

/* --- BIOS Action Elements --- */
.bios-btn {
    background: transparent;
    color: #808080;
    border: 1px solid #404040;
    font-family: inherit;
    padding: 4px 10px;
    cursor: pointer;
    margin-top: 10px;
}

.bios-btn:hover {
    color: #ffffff;
    border-color: #ffffff;
    background: #151515;
}

.cmd-line {
    display: flex;
    align-items: center;
    color: #ffffff;
    padding: 5px 0;
}

.cmd-line input {
    background: transparent;
    border: none;
    color: #9c1c1c; /* Typing input pulses in cautious red */
    font-family: inherit;
    font-size: 14px;
    margin-left: 10px;
    width: 70%;
    outline: none;
    text-transform: uppercase;
}

.legend-bar {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #555555;
    padding-top: 5px;
}

/* --- CRT Fisheye / Curvature Simulation Effect --- */
.vhs-lens {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(0,0,0,0) 40%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
    z-index: 5;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.9);
}

.crt-scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;