:root {
    --amber: #ffb000;
    --amber-glow: #ff8c00;
    --amber-dim: #cc8800;
    --red: #ff4444;
    --red-glow: #ff0000;
    --bg-dark: #0a0a0a;
    --terminal-bg: #0d0d0d;
}

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

html {
    scroll-behavior: auto;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background: var(--bg-dark);
    color: var(--amber);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.terminal-container {
    width: 100vw;
    height: 100vh;
    background: var(--terminal-bg);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.terminal-body {
    flex: 1;
    padding: 20px;
    overflow-y: scroll;
    overflow-x: hidden;
    font-size: 18px;
    line-height: 1.5;
    white-space: pre-wrap;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: auto;
    font-variant-ligatures: none;
}

/* Optimized scrollbar */
.terminal-body::-webkit-scrollbar {
    width: 10px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: var(--amber-dim);
    border-radius: 5px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: var(--amber);
}

#terminal-output {
    margin-bottom: 10px;
}

.output-line {
    color: var(--amber);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.command-line {
    color: var(--amber-glow);
    margin: 10px 0 5px 0;
}

/* Root mode styles */
.output-line-root {
    color: var(--red);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.command-line-root {
    color: var(--red-glow);
    margin: 10px 0 5px 0;
}

.prompt-root {
    color: var(--red-glow) !important;
}

.error {
    color: #ff6b6b;
    text-shadow: 0 0 5px #ff0000;
}

.success {
    color: #51cf66;
    text-shadow: 0 0 5px #00ff00;
}

.input-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.prompt {
    color: var(--amber-glow);
    flex-shrink: 0;
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--amber);
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    caret-color: var(--amber);
}

/* Root mode input */
.prompt-root ~ #terminal-input {
    color: var(--red);
    caret-color: var(--red);
}

.directory-item {
    display: inline-block;
    margin-right: 20px;
    color: #51cf66;
}

.file-item {
    display: inline-block;
    margin-right: 20px;
    color: var(--amber);
}

/* Clickable link styles */
.link {
    color: #74c0fc;
    text-decoration: underline;
    cursor: pointer;
    text-shadow: 0 0 3px rgba(116, 192, 252, 0.5);
}

.link:hover {
    color: #a5d8ff;
    text-shadow: 0 0 5px rgba(116, 192, 252, 0.8);
}

.ascii-art {
    color: var(--amber-dim);
    line-height: 1.2;
    font-size: 14px;
}

/* Text selection styling */
::selection {
    background: var(--amber-dim);
    color: #000;
}

::-moz-selection {
    background: var(--amber-dim);
    color: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .terminal-body {
        font-size: 14px;
        padding: 15px;
    }
    
    #terminal-input {
        font-size: 14px;
    }
}
