:root {
    --bg-color: #0d0d0d;
    --text-color: #33ff33;
    /* Classic terminal green */
    --text-secondary: #cccccc;
    /* White/Grey for specific info */
    --error-color: #ff3333;
    --prompt-color: #00ccff;

    /* Font Options */
    --font-classic: 'Courier New', Courier, monospace;
    --font-retro: 'VT323', monospace;
    --font-modern: 'Fira Code', monospace;

    --font-family: var(--font-classic);
    /* Default */
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 18px;
    height: 100vh;
    overflow: hidden;
    /* Prevent body scroll, handle in terminal */
    display: flex;
    flex-direction: column;
}

#terminal {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

#terminal::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Opera */
}

#output {
    display: flex;
    flex-direction: column;
    min-height: min-content;
}

.line {
    margin: 2px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    opacity: 0;
    animation: fadeIn 0.1s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.system-msg {
    color: var(--text-secondary);
}

.error-msg {
    color: var(--error-color);
}

.success-msg {
    color: var(--text-color);
    font-weight: bold;
}

#input-line {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

#prompt {
    color: var(--prompt-color);
    margin-right: 10px;
    white-space: nowrap;
}

#command-input {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 16px;
    flex: 1;
    outline: none;
    caret-color: var(--text-color);
    /* Blinking cursor color */
}

/* Scrollbar hidden globally */

.nano-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.nano-panel {
    width: min(90vw, 900px);
    max-height: 90vh;
    background: #050505;
    border: 1px solid #33ff33;
    box-shadow: 0 0 20px rgba(51, 255, 51, 0.4);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
}

.nano-header {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
}

.nano-subheader {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.nano-textarea {
    flex: 1;
    min-height: 320px;
    width: 100%;
    background: rgba(13, 13, 13, 0.95);
    border: 1px solid #33ff33;
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 16px;
    padding: 12px;
    resize: vertical;
    outline: none;
}

.nano-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.nano-btn {
    background: transparent;
    border: 1px solid #33ff33;
    color: var(--text-color);
    padding: 6px 16px;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 14px;
    transition: background 0.15s ease;
}

.nano-btn:hover {
    background: #33ff33;
    color: #000;
}
