@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1e1e1e;
    font-family: 'Fira Code', monospace;
    color: #f8f8f2;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.terminal {
    width: 90%;
    max-width: 900px;
    background: #2d2d2d;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: #333;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    position: relative;
}

.buttons {
    display: flex;
    gap: 8px;
    position: absolute;
    left: 16px;
}

.btn {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.close { background: #ff5f56; }
.minimize { background: #ffbd2e; }
.expand { background: #27c93f; }

.terminal-title {
    text-align: center;
    width: 100%;
    font-size: 14px;
    color: #ccc;
    letter-spacing: 0.5px;
}

.terminal-body {
    padding: 1.5rem;
    min-height: 400px;
    max-height: 70vh;
    overflow-y: auto;
}

.line {
    margin: 0.5rem 0;
    display: flex;
    align-items: flex-start;
}

.prompt-text {
    color: #4dc96d;
    font-weight: 500;
    white-space: nowrap;
}

.command {
    color: #f8f8f2;
    font-weight: 400;
}

.cursor {
    display: inline-block;
    width: 10px;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    color: #f8f8f2;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.output-line {
    margin: 0.6rem 0;
    padding-left: 1.8rem;
    line-height: 1.6;
}

.keyword { color: #ff79c6; }
.string { color: #f1fa8c; }
.comment { color: #6272a4; font-style: italic; }
.function { color: #8be9fd; }
.number { color: #bd93f9; }
.tag { color: #ff79c6; }
.attr { color: #50fa7b; }

.highlight {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

/* Scrollbar styling */
.terminal-body::-webkit-scrollbar {
    width: 8px;
}
.terminal-body::-webkit-scrollbar-track {
    background: #2d2d2d;
}
.terminal-body::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}
.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #777;
}