:root {
    /* Main Theme Colors */
    --bg-page: #000000; /* Pure black background */
    --bg-terminal: #0a0a0a; /* Slightly lighter black for the terminal itself */
    --bg-header: #1a1a1a; /* Dark header */
    --border-color: #333333;
    --terminal-glow: rgba(56, 189, 248, 0.1); /* Very subtle cyan glow */
    
    /* Text Colors */
    --text-main: #f4f4f5;
    --text-highlight: #38bdf8;
    --text-user: #0ea5e9;
    --text-path: #4ade80;
    --text-symbol: #f4f4f5;
    --text-success: #4ade80;
    --text-error: #f87171;

    --font-mono: 'Menlo', 'Monaco', 'Courier New', monospace;
}

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

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: var(--font-mono);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.terminal-container {
    width: 80vw;
    height: 80vh;
    background-color: var(--bg-terminal);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    /* Ultra-thin border glow for definition */
    box-shadow: 0 0 1px 1px rgba(255, 255, 255, 0.05), 0 0 15px var(--terminal-glow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.terminal-header {
    height: 38px;
    background-color: var(--bg-header);
    display: flex;
    align-items: center;
    justify-content: center; /* Center the title, put buttons absolute or just keep buttons left */
    position: relative;
    border-bottom: 1px solid #111;
}

.mac-buttons {
    position: absolute;
    left: 15px;
    display: flex;
    gap: 8px;
}

.mac-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: bold;
    cursor: pointer;
    color: transparent; /* Hide icons by default */
    transition: color 0.1s ease;
}

.mac-button:hover {
    color: rgba(0, 0, 0, 0.6); /* Show icon only on specific button hover */
}

.mac-button.close { background-color: #ff5f56; }
.mac-button.close::before { content: "✕"; }

.mac-button.minimize { background-color: #ffbd2e; }
.mac-button.minimize::before { content: "—"; }

.mac-button.maximize { background-color: #27c93f; }
.mac-button.maximize::before { content: "＋"; }

.header-title {
    color: #a1a1aa;
    font-size: 13px;
    font-weight: bold;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: 0.5px;
}

.terminal-body {
    flex-grow: 1;
    padding: 20px 25px;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.6;
}

/* Custom Scrollbar for the terminal */
.terminal-body::-webkit-scrollbar {
    width: 10px;
}
.terminal-body::-webkit-scrollbar-track {
    background: transparent;
}
.terminal-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

.line {
    margin-bottom: 6px;
    word-break: break-all;
}

.highlight {
    color: var(--text-highlight);
}

.input-line {
    display: none;
    margin-top: 6px;
}

.prompt {
    display: inline-flex;
    gap: 8px;
    margin-right: 12px;
    white-space: nowrap;
}

.success-icon { color: var(--text-success); }
.error-icon { color: var(--text-error); }
.user { color: var(--text-user); font-weight: bold; }
.path { color: var(--text-path); font-weight: bold; }
.symbol { color: var(--text-symbol); }

#command-input {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 15px;
    flex-grow: 1;
    outline: none;
    caret-color: var(--text-main); /* The blinking cursor color */
}