:root {
    --neon-green: #39ff14;
    --crt-bg: #050505;
}

body {
    background-color: var(--crt-bg);
    color: var(--neon-green);
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    animation: flicker 0.15s infinite;
}

/* Scanline Effect */
body::before {
    content: " ";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%);
    background-size: 100% 4px;
    z-index: 100;
    pointer-events: none;
}

@keyframes flicker {
    0% { opacity: 0.98; }
    5% { opacity: 0.95; }
    15% { opacity: 0.99; }
    100% { opacity: 1; }
}

.terminal-logo {
    font-size: 2.5rem;
    font-weight: bold;
    border: 3px double var(--neon-green);
    padding: 10px 20px;
    margin-bottom: 5px;
    text-shadow: 0 0 15px var(--neon-green);
}

.status-bar { font-size: 0.8rem; margin-bottom: 20px; opacity: 0.8; }

.input-area {
    width: 100%;
    max-width: 800px;
    margin-bottom: 30px;
}

textarea {
    width: 100%;
    background: #000;
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    padding: 15px;
    font-family: inherit;
    box-sizing: border-box;
    margin-bottom: 10px;
}

button {
    background: var(--neon-green);
    color: black;
    border: none;
    padding: 10px 25px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}

.separator {
    width: 100%;
    max-width: 800px;
    border: none;
    border-top: 1px solid var(--neon-green);
    margin: 20px 0;
    opacity: 0.3;
}

#log-container { 
    width: 100%; 
    max-width: 800px; 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}

.entry {
    border: 1px solid var(--neon-green);
    padding: 15px;
    background: rgba(5, 44, 5, 0.1);
}

.timestamp { 
    font-size: 0.7rem; 
    display: block; 
    margin-bottom: 8px; 
    opacity: 0.7;
}

.prompt::after { content: "_"; animation: blink 1s infinite; }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0; } }