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

::selection {
    background: #00ff9f;
    color: #0a0a0a;
}

body {
    background: #050a08;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    position: relative;
}

/* Subtle scanline overlay */
#scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

#terminal {
    width: 100%;
    max-width: 960px;
    height: 92vh;
    background: #0c1210;
    border-radius: 10px;
    border: 1px solid #1a2e25;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 0 0 1px rgba(0, 255, 159, 0.05),
        0 20px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(0, 255, 159, 0.04);
}

#terminal-header {
    background: #0f1815;
    padding: 12px 16px;
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid #1a2e25;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

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

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

.btn-close { background: #ff5f57; }
.btn-minimize { background: #ffbd2e; }
.btn-maximize { background: #28c840; }

.terminal-title {
    color: #4a7a65;
    font-size: 13px;
    flex: 1;
    text-align: center;
    margin-right: 52px;
    letter-spacing: 0.5px;
}

#terminal-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.7;
    color: #b0c4b8;
    scrollbar-width: thin;
    scrollbar-color: #1a2e25 transparent;
}

#terminal-body::-webkit-scrollbar {
    width: 6px;
}

#terminal-body::-webkit-scrollbar-track {
    background: transparent;
}

#terminal-body::-webkit-scrollbar-thumb {
    background: #1a2e25;
    border-radius: 3px;
}

#output {
    white-space: pre-wrap;
    word-wrap: break-word;
}

#output .command-line {
    color: #b0c4b8;
    margin-top: 10px;
}

#output .command-line .prompt {
    color: #00ff9f;
}

#output .command-line .cmd {
    color: #e0f0e8;
}

#output .response {
    color: #b0c4b8;
    margin-bottom: 2px;
}

.highlight { color: #00ff9f; }
.accent { color: #00d4ff; }
.dim { color: #3d5a4d; }
.warn { color: #ffbd2e; }
.error { color: #ff5f57; }
.bold { color: #e0f0e8; font-weight: bold; }
.muted { color: #5a7a6d; }
.success { color: #28c840; }

.ascii-art {
    color: #00ff9f;
    line-height: 1.15;
}

.ascii-dim {
    color: #1a5a3a;
    line-height: 1.15;
}

.separator {
    color: #1a2e25;
}

.link {
    color: #00d4ff;
    text-decoration: underline;
    cursor: pointer;
}

/* Progress bar animation */
.progress-bar {
    color: #00ff9f;
}

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

.blinking {
    animation: blink-cursor 1s step-end infinite;
}

/* Boot line animation */
@keyframes bootFade {
    from { opacity: 0; transform: translateY(2px); }
    to { opacity: 1; transform: translateY(0); }
}

.boot-line {
    animation: bootFade 0.08s ease-out;
}

/* Input line */
#input-line {
    display: flex;
    align-items: center;
    margin-top: 10px;
    min-height: 24px;
}

#input-line .prompt {
    color: #00ff9f;
    white-space: nowrap;
    flex-shrink: 0;
}

#command-input {
    background: none;
    border: none;
    color: #e0f0e8;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
    font-size: 14px;
    outline: none;
    width: 100%;
    caret-color: #00ff9f;
    letter-spacing: 0.3px;
}

/* Mobile */
@media (max-width: 768px) {
    body {
        padding: 0;
        align-items: stretch;
    }

    #terminal {
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
        border: none;
    }

    #terminal-header {
        border-radius: 0;
    }

    #terminal-body {
        padding: 14px;
        font-size: 12px;
        line-height: 1.6;
    }

    #command-input {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    #terminal-body {
        font-size: 11px;
        padding: 10px;
    }

    #command-input {
        font-size: 11px;
    }

    .terminal-title {
        font-size: 11px;
    }
}
