<!-- components/Terminal.svelte -->
<script>
export let terminalLines = [];
</script>

<div class="terminal">
    <div class="terminal-header">Output</div>
    <div class="terminal-content">
        {#each terminalLines as line}
            <div class="terminal-line">{line}</div>
        {/each}
    </div>
</div>

<style>
.terminal {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    flex-grow: 1;
}

.terminal-header {
    background-color: var(--bg-secondary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.terminal-content {
    padding: var(--spacing-md);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--text-primary);
    max-height: 200px;
    overflow-y: auto;
    white-space: nowrap;
}

.terminal-line {
    margin-bottom: 2px;
}

.terminal-line:last-child {
    margin-bottom: 0;
}
</style>
