:root {
    --neon-cyan: #00f2ff;
    --obsidian: #050505;
    --warning-red: #ff003c;
    --dim-cyan: rgba(0, 242, 255, 0.3);
}

body {
    background-color: var(--obsidian);
    color: var(--neon-cyan);
    font-family: 'Courier New', Courier, monospace;
    margin: 0; padding: 20px;
    display: flex; justify-content: center;
}

#command-center {
    border: 1px solid var(--dim-cyan);
    padding: 30px;
    background: rgba(0,0,0,0.9);
    max-width: 900px;
    width: 100%;
    box-shadow: 0 0 50px rgba(0,0,0,1);
}

/* Tab Menu Styling */
.node-menu {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--dim-cyan);
    padding-bottom: 10px;
}

.node-btn {
    background: transparent;
    border: 1px solid var(--dim-cyan);
    color: var(--neon-cyan);
    padding: 8px 15px;
    cursor: pointer;
    font-family: inherit;
    transition: 0.3s;
}

.node-btn:hover, .node-btn.active {
    background: var(--neon-cyan);
    color: var(--obsidian);
    box-shadow: 0 0 15px var(--neon-cyan);
}

.data-node {
    display: none;
    animation: scanIn 0.5s ease-out;
}

.data-node.active { display: block; }

@keyframes scanIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.thought-log {
    border-left: 3px solid var(--warning-red);
    padding-left: 20px;
    background: rgba(255, 0, 60, 0.05);
    margin-top: 20px;
    font-style: italic;
}

/* Add to the bottom of the file */
.terminal-text::after {
    content: "_";
    animation: blink 1s infinite;
}

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

/* The Background Pulse */
#command-center {
    position: relative;
    overflow: hidden;
}

#command-center::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 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));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 10;
}

/* Tactical Scanline Effect */
#command-center::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: rgba(18, 16, 16, 0.1);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    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));
    background-size: 100% 2px, 3px 100%;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

#command-center {
    background: radial-gradient(circle, rgba(0, 242, 255, 0.05) 0%, rgba(5, 5, 5, 1) 100%);
}

/* Neural Handshake Animation */
.handshake-container {
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--dim-cyan);
    margin-top: 20px;
    background: rgba(0, 242, 255, 0.02);
}

.pulse-ring {
    width: 20px;
    height: 20px;
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    position: absolute;
    animation: expand 3s infinite;
}

@keyframes expand {
    0% { width: 20px; height: 20px; opacity: 1; }
    100% { width: 150px; height: 150px; opacity: 0; }
}

/* Sidebar Stats */
#status-sidebar {
    position: fixed;
    right: 20px;
    top: 100px;
    width: 200px;
    border: 1px solid var(--dim-cyan);
    background: rgba(0,0,0,0.8);
    padding: 10px;
    font-size: 0.8em;
}

.stat-row { margin-bottom: 10px; }
.bar-bg { background: #222; height: 5px; width: 100%; margin-top: 5px; }
.bar-fill { background: var(--neon-cyan); height: 100%; width: 65%; box-shadow: 0 0 10px var(--neon-cyan); }
