@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&display=swap');

:root {
    --bg-main: #0d0f0d;
    --bg-status: #0a0c0a;
    --bg-status-light: #141a14;

    --text-primary: #b8d4b0;     /* muted sage green */
    --text-muted: #3d5c3d;       /* dim forest green */
    --text-accent: #5faf5f;      /* terminal green caret */
    --prompt-color: #4a6b4a;     /* dim green prompt */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    min-height: 100vh;
    cursor: text;
    overflow: hidden;
}

.app-window {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.workspace {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 1rem 1rem 1.5rem; 
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#terminal {
    width: 100%;
}

#header {
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
}

#input-line,
#terminal > div:not(#header):not(.output) {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
}

span {
    color: var(--prompt-color);
    font-weight: 400;
    font-size: 12px; 
    white-space: nowrap;
    user-select: none;
}

input[type="text"] {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    flex: 1;
    caret-color: var(--text-accent);
    caret-shape: block;
}

#input-line p,
#terminal > div > p {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 400;
}

.output {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    white-space: pre
}

output p,
.output p {
    color: var(--text-muted);   /* output slightly dimmer than prompt line */
    font-size: 12px;
    line-height: 1.6;
    margin-top: 0.1rem;
}

.output p {
    margin-left: 0;
    padding-left: 0;
    white-space: pre
}

#ascii-art {
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.1;
    white-space: pre;
    user-select: none;
    margin-bottom: 1.5rem;
}

/* Status bar */
.vim-statusbar {
    background-color: var(--bg-status);
    height: 1.75rem;
    border-top: 1px solid #1e2025;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    user-select: none;
    padding: 0 1rem;
}

.tabline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.tab-left, .tab-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 100%;
}

.vim-statusbar span {
    color: var(--text-muted);
    font-weight: 400;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.mode-normal {
    background-color: #5faf5f;
    color: #0d0f0d !important;
    font-weight: 600 !important;
    padding: 0 0.6rem !important;
    border-radius: 2px;
}

.file-info {
    background-color: var(--bg-status-light);
    color: var(--text-primary) !important;
}

.status-left, .status-right {
    display: flex;
    align-items: center;
    height: 100%;
}