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

body {
    font-family: 'Courier New', 'Monaco', monospace;
    background-color: #0d1117;
    color: #c9d1d9;
    height: 100vh;
    overflow: hidden;
}

.terminal {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #0d1117;
}

.terminal-header {
    background: #161b22;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #30363d;
}

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

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

.btn-close {
    background: #ff5f56;
}

.btn-minimize {
    background: #ffbd2e;
}

.btn-maximize {
    background: #27c93f;
}

.terminal-title {
    flex: 1;
    text-align: center;
    font-size: 14px;
    color: #8b949e;
}

.terminal-body {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.3;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.terminal-body::-webkit-scrollbar {
    display: none;
}

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

.prompt {
    color: #58a6ff;
}

.command-text {
    color: #f0f6fc;
}

.success {
    color: #3fb950;
}

.error {
    color: #f85149;
}

.info {
    color: #8b949e;
}

.highlight {
    color: #ffa657;
}

.input-line {
    display: inline-flex;
    align-items: baseline;
    width: 100%;
    margin: 0;
    padding: 0;
}

#command-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #f0f6fc;
    font-family: inherit;
    font-size: inherit;
    caret-color: #58a6ff;
    padding: 0;
    margin: 0;
    line-height: inherit;
    display: inline-block;
    vertical-align: baseline;
}

.terminal-footer {
    background: #161b22;
    padding: 10px 20px;
    border-top: 1px solid #30363d;
    text-align: center;
    font-size: 12px;
    color: #8b949e;
}

.terminal-footer a {
    color: #58a6ff;
    text-decoration: none;
}

.terminal-footer a:hover {
    text-decoration: underline;
}

.ascii-art {
    color: #58a6ff;
    font-size: 12px;
    line-height: 1.2;
}

.matrix-effect {
    animation: matrix 0.1s infinite;
}

@keyframes matrix {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #58a6ff;
    animation: blink 1s infinite;
    vertical-align: middle;
    margin-left: 2px;
}

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

.typewriter {
    overflow: hidden;
}
