:root {
    --bg: #0a0e14;
    --surface: #151a21;
    --text: #c5cdd9;
    --text-dim: #6c7a89;
    --accent: #39ff14;
    --accent-secondary: #01d9ff;
    --prompt: #ff6b6b;
    --command: #ffd93d;
    --border: #1f2937;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f5f5f5;
        --surface: #ffffff;
        --text: #1a1a1a;
        --text-dim: #666666;
        --accent: #00aa00;
        --accent-secondary: #0088cc;
        --prompt: #cc0000;
        --command: #cc8800;
        --border: #e0e0e0;
    }
}

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

body {
    font-family: "Courier New", "Monaco", monospace;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

.terminal {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: bootUp 0.5s ease-out;
}

@keyframes bootUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

.btn-close {
    background: #ff5f56;
}
.btn-minimize {
    background: #ffbd2e;
}
.btn-maximize {
    background: #27c93f;
}

.terminal-title {
    margin-left: 10px;
    font-size: 0.9em;
    color: var(--text-dim);
}

.terminal-body {
    padding: 30px;
    min-height: 600px;
}

.line {
    margin-bottom: 10px;
    animation: typeIn 0.3s ease-out;
}

@keyframes typeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.prompt {
    color: var(--prompt);
    font-weight: bold;
}

.path {
    color: var(--accent-secondary);
}

.command {
    color: var(--command);
}

.output {
    color: var(--text);
    margin-left: 0;
    margin-top: 5px;
}

.comment {
    color: var(--text-dim);
}

.header-art {
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.info {
    color: var(--accent-secondary);
}

.section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border);
}

.section:last-child {
    border-bottom: none;
}

.indent {
    margin-left: 20px;
}

.double-indent {
    margin-left: 40px;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--accent);
    color: var(--bg);
    border-radius: 3px;
    font-weight: bold;
    font-size: 0.85em;
}

.link {
    color: var(--accent-secondary);
    text-decoration: underline;
}

a,
a:visited,
a:hover,
a:active {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 18px;
    background: var(--accent);
    animation: blink 1s infinite;
    margin-left: 5px;
}

@keyframes blink {
    0%,
    50% {
        opacity: 1;
    }
    51%,
    100% {
        opacity: 0;
    }
}

.tree-item {
    position: relative;
    padding-left: 20px;
}

.tree-item::before {
    content: "├── ";
    position: absolute;
    left: 0;
    color: var(--text-dim);
}

.tree-item:last-child::before {
    content: "└── ";
}

.ascii-border {
    border: 1px solid var(--border);
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

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

    .terminal-body {
        padding: 20px 15px;
        font-size: 0.9em;
    }

    .indent {
        margin-left: 10px;
    }

    .double-indent {
        margin-left: 20px;
    }
}

.table {
    margin: 10px 0;
}

.table-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 5px 0;
}

.table-header {
    color: var(--accent);
    font-weight: bold;
}

@media (max-width: 768px) {
    .table-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}
