:root {
    --background-color: #232323;
    --text-color: #d0d0d0;
    --primary-color: #7ec699;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    text-decoration: none;
}

body {
    background-color: var(--background-color);
    font-family: 'Fira Mono', 'Consolas', monospace;
    margin: 0;
    padding: 0;
}

a {
    color: var(--primary-color);
}


#terminal {
    width: 80vw;
    max-width: 1200px;
    margin: 40px auto;
    background: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 0 24px #000a;
    padding: 32px 24px 16px 24px;
}

#terminal-output {
    max-height: 80vh;
    overflow-y: auto;
    display: block;
    scrollbar-color: #444 #232323;
    scrollbar-width: thin;
}

.terminal-line {
    margin: 0;
    white-space: pre-wrap;
}

.terminal-input-line {
    display: flex;
    align-items: center;
}

.terminal-prompt {
    color: var(--primary-color);
    opacity: 0.9;
    font-family: inherit;
    font-size: 1em;
}

.terminal-input {
    background: none;
    border: none;
    color: var(--text-color);
    font: inherit;
    outline: none;
    margin-left: 0.2em;
}

.selected {
    background: #444;
    color: var(--primary-color);
    font-weight: bold;
}

.primary-color {
    color: var(--primary-color);
    font-weight: bold;
}

.terminal-help-cmd {
    display: inline-block;
    min-width: 120px;
    font-family: inherit;
    white-space: pre;
}

.terminal-help-desc {
    color: var(--text-color);
}

.terminal-links {
    display: flex;
    flex-direction: column;
}

.terminal-links a {
    margin: 2px 0;
    width: fit-content;
}

.terminal-links a:before {
    content: '→ ';
    color: var(--primary-color);
}

.terminal-links a:hover {
    text-decoration: underline;
}


/*** HTOP ***/
.htop-header {
    font-family: monospace;
    margin-bottom: 8px;
    display: flex;
    gap: 16px;
    color: var(--primary-color);
}

.htop-bar {
    background: #222;
    display: inline-block;
    width: 100px;
    height: 10px;
    border-radius: 3px;
    margin: 0 4px;
    vertical-align: middle;
    overflow: hidden;
}

.htop-bar-fill {
    display: inline-block;
    height: 100%;
    background: linear-gradient(90deg, #6cf, #0f0);
    border-radius: 3px;
    transition: width 0.4s;
}

.htop-bar-fill.mem {
    background: linear-gradient(90deg, #fc3, #f60);
}

.htop-bar-fill.swap {
    background: linear-gradient(90deg, #f66, #c00);
}

.htop-table {
    width: 100%;
    font-family: monospace;
    color: var(--text-color);
    border-collapse: collapse;
}

.htop-table th, .htop-table td {
    padding: 2px 8px;
    border-bottom: 1px solid #333;
}

.htop-table th {
    color: var(--primary-color);
    background: #222;
}

.htop-hint {
    font-size: 0.9em;
    color: var(--text-color);
    opacity: 0.9;
    margin-top: 8px;
    font-family: monospace;
}

.htop-uptime {
    font-family: 'Fira Mono', 'Consolas', monospace;
    color: #d0d0d0;
    margin-bottom: 4px;
    font-size: 1em;
}