/*
    AutoCode: Generated or updated by AutoCode.
    Project: project-chimera
    Task: Implement features from README.md based on project files.
*/

/* --- Global & Body Styles --- */
html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    background-color: #1e1e1e;
    color: #d4d4d4;
    font-family: 'Consolas', 'Menlo', 'monospace';
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    padding: 1em;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Terminal Output Area --- */
#terminal-output {
    flex: 1 1 auto;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

#terminal-output p,
#terminal-output pre {
    margin: 2px 0;
}

/* --- Input Line & Prompt --- */
/* Selects the div that is the direct parent of #terminal-input */
div:has(> #terminal-input) {
    display: flex;
    flex-shrink: 0;
}

/* The prompt symbol '>' */
div:has(> #terminal-input) > span {
    color: #569cd6;
    white-space: nowrap;
}

/* --- User Input Field --- */
#terminal-input {
    background: transparent;
    border: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    width: 100%;
    outline: none;
    padding: 0;
}

#terminal-input:focus {
    caret-color: #d4d4d4;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #2a2a2a;
}

::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #777;
}