* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
}

.terminal {
    width: 100%;
    max-width: 900px;
    background: #0d1117;
    border-radius: 10px;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(88, 166, 255, 0.1);
    overflow: hidden;
}

.terminal-header {
    background: linear-gradient(180deg, #2d333b 0%, #22272e 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #373e47;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close { background: #ff5f56; }
.btn-minimize { background: #ffbd2e; }
.btn-maximize { background: #27ca40; }

.terminal-title {
    flex: 1;
    text-align: center;
    color: #8b949e;
    font-size: 13px;
}

.terminal-body {
    padding: 20px;
    height: 500px;
    overflow-y: auto;
    color: #c9d1d9;
    font-size: 14px;
    line-height: 1.6;
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #161b22;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 4px;
}

.output-line {
    margin-bottom: 8px;
    word-wrap: break-word;
}

.prompt {
    color: #7ee787;
    margin-right: 10px;
}

.user-input {
    color: #f0f6fc;
}

.success {
    color: #7ee787;
}

.error {
    color: #f85149;
}

.separator {
    color: #30363d;
    margin: 15px 0;
}

.response-block {
    background: rgba(56, 139, 253, 0.1);
    border-left: 3px solid #58a6ff;
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 0 6px 6px 0;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #161b22;
    border-top: 1px solid #30363d;
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #f0f6fc;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
}

#terminal-input::placeholder {
    color: #484f58;
}

.typing-indicator {
    display: inline-flex;
    gap: 4px;
    padding: 10px 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #58a6ff;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

a {
    color: #58a6ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}