body {
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    font-family: 'Segoe UI', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.terminal-container {
    width: 90%;
    max-width: 900px;
    background: #1e1e2e;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    overflow: hidden;
}

.terminal-header {
    background: #2a2a3e;
    padding: 12px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #3a3a4e;
}

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

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

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

.terminal-title {
    color: #8b8b9f;
    font-size: 0.9em;
    flex-grow: 1;
    text-align: center;
}

#terminal {
    background-color: #282a36;
    color: #f8f8f2;
    font-family: 'Fira Code', 'Consolas', monospace;
    padding: 20px;
    height: 600px;
    overflow-y: auto;
    position: relative;
}

#terminal::-webkit-scrollbar {
    width: 8px;
}

#terminal::-webkit-scrollbar-track {
    background: #282a36;
}

#terminal::-webkit-scrollbar-thumb {
    background: #44475a;
    border-radius: 4px;
}

.line {
    min-height: 1.2em;
    line-height: 1.2em;
    margin: 2px 0;
}

.input-line {
    display: flex;
    position: relative;
}

.prompt {
    color: #50fa7b;
    margin-right: 8px;
    user-select: none;
}

.continuation-prompt {
    color: #6272a4;
}

.input-area {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
}

#command-input {
    background: transparent;
    border: none;
    color: #f8f8f2;
    font-family: inherit;
    font-size: inherit;
    width: 100%;
    outline: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.cursor-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.cursor {
    width: 8px;
    height: 1.2em;
    background-color: #f8f8f2;
    animation: blink 1s infinite;
    position: absolute;
    left: 0;
}

.output {
    color: #8be9fd;
    white-space: pre-wrap;
}

.error {
    color: #ff5555;
    white-space: pre-wrap;
}

.system {
    color: #bd93f9;
    white-space: pre-wrap;
}

.python-keyword { color: #ff79c6; }
.python-string { color: #f1fa8c; }
.python-number { color: #bd93f9; }
.python-builtin { color: #8be9fd; }
.python-comment { color: #6272a4; }

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

@media (max-width: 600px) {
    .terminal-container {
        width: 95%;
    }
    
    body {
        padding: 10px;
    }
} 