/* UNIX Terminal Theme - Classic Green on Black */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --terminal-bg: #0c0c0c;
    --terminal-fg: #00ff00;
    --terminal-fg-dim: #008800;
    --terminal-accent: #33ff33;
    --terminal-error: #ff5555;
    --terminal-warning: #ffff55;
    --terminal-info: #55ffff;
    --terminal-border: #333333;
    --terminal-header: #1a1a1a;
}

body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
    color: var(--terminal-fg);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.terminal-container {
    width: 100%;
    max-width: 1000px;
    background: var(--terminal-bg);
    border: 2px solid var(--terminal-border);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 255, 0, 0.15),
                0 0 40px rgba(0, 255, 0, 0.05);
    overflow: hidden;
    animation: terminal-glow 2s ease-in-out infinite alternate;
}

@keyframes terminal-glow {
    0% {
        box-shadow: 0 20px 60px rgba(0, 255, 0, 0.15),
                    0 0 40px rgba(0, 255, 0, 0.05);
    }
    100% {
        box-shadow: 0 20px 60px rgba(0, 255, 0, 0.2),
                    0 0 40px rgba(0, 255, 0, 0.1);
    }
}

.terminal-header {
    background: var(--terminal-header);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--terminal-border);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-button.close {
    background: #ff5f56;
}

.terminal-button.minimize {
    background: #ffbd2e;
}

.terminal-button.maximize {
    background: #27c93f;
}

.terminal-title {
    color: var(--terminal-fg-dim);
    font-size: 14px;
    flex-grow: 1;
}

.terminal-body {
    padding: 20px;
    min-height: 600px;
    max-height: 80vh;
    overflow-y: auto;
    background: var(--terminal-bg);
}

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

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

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

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

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

.boot-sequence {
    animation: flicker 0.5s ease-in;
}

.boot-sequence pre {
    color: var(--terminal-accent);
    font-size: 8px;
    line-height: 0.6;
    margin-bottom: 15px;
    text-shadow: 0 0 10px var(--terminal-accent);
}

.boot-sequence p {
    margin: 0;
    color: var(--terminal-fg);
}

.welcome-msg {
    color: var(--terminal-fg-dim);
    font-style: italic;
}

.timestamp {
    color: var(--terminal-accent);
}

.command-hint {
    color: var(--terminal-accent);
    font-weight: bold;
}

.output-line {
    margin: 3px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

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

.command-line .prompt {
    color: var(--terminal-accent);
    font-weight: bold;
}

.command-line .command {
    color: var(--terminal-fg);
}

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

.warning {
    color: var(--terminal-warning);
}

.info {
    color: var(--terminal-info);
}

.success {
    color: var(--terminal-accent);
}

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

.prompt {
    color: var(--terminal-accent);
    font-weight: bold;
    margin-right: 8px;
    white-space: nowrap;
}

#terminal-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--terminal-fg);
    font-family: inherit;
    font-size: 16px;
    outline: none;
    caret-color: var(--terminal-accent);
}

#terminal-input::selection {
    background: var(--terminal-fg);
    color: var(--terminal-bg);
}

/* Text styling */
.bold {
    font-weight: bold;
}

.dim {
    color: var(--terminal-fg-dim);
}

.underline {
    text-decoration: underline;
}

/* Section headers */
.section-header {
    color: var(--terminal-accent);
    font-weight: bold;
    margin: 15px 0 5px 0;
    text-transform: uppercase;
    border-bottom: 1px solid var(--terminal-fg-dim);
    padding-bottom: 5px;
}

/* List items */
.list-item {
    margin-left: 20px;
    position: relative;
}

.list-item::before {
    content: "▸";
    position: absolute;
    left: -15px;
    color: var(--terminal-accent);
}

/* ASCII art and decorative elements */
.ascii-art {
    color: var(--terminal-fg-dim);
    line-height: 1;
    font-size: 12px;
}

/* Cursor blink animation */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.cursor {
    animation: blink 1s step-end infinite;
    background: var(--terminal-accent);
    color: var(--terminal-bg);
    padding: 0 2px;
}

/* Flicker effect for boot */
@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* File listing styles */
.file-entry {
    display: inline-block;
    width: 200px;
    padding: 3px 5px;
    margin: 2px;
}

.file-entry.dir {
    color: var(--terminal-info);
    font-weight: bold;
}

.file-entry.exec {
    color: var(--terminal-accent);
    font-weight: bold;
}

/* Help command table */
.help-table {
    margin: 0 0 5px 0;
}

.help-row {
    display: flex;
    margin: 0;
    line-height: 1.35;
    font-size: 0.9em;
}

.help-command {
    color: var(--terminal-accent);
    width: 150px;
    font-weight: bold;
}

.help-description {
    color: var(--terminal-fg);
}

/* Link styling */
a {
    color: var(--terminal-info);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: var(--terminal-accent);
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .terminal-container {
        max-width: 100%;
    }

    .terminal-body {
        min-height: 500px;
        max-height: 70vh;
        padding: 15px;
    }

    .boot-sequence pre {
        font-size: 6px;
    }

    #terminal-input {
        font-size: 14px;
    }

    .file-entry {
        width: 150px;
    }
}
