/* Terminal */
.terminal-body {
    background: #000;
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    min-height: 400px;
    max-height: 500px;
    overflow-y: auto;
    color: #e2e2e2;
}

.terminal-line {
    margin-bottom: 4px;
    white-space: pre-wrap;
    word-break: break-all;
}

.terminal-line.sys {
    color: var(--text-muted);
    font-style: italic;
}

.terminal-line.cmd {
    color: #facc15;
    font-weight: 700;
    margin-top: 15px;
}

.terminal-line.cmd::before {
    content: "$ ";
}

.terminal-line.out {
    color: #ccc;
}

.terminal-line.err {
    color: var(--error);
}

.shell-line.err {
    color: #f87171;
}

.terminal-footer {
    padding: 12px;
    background: var(--bg-surface);
    display: flex;
    gap: 10px;
    align-items: center;
    border-top: 1px solid var(--border);
}

.input-prefix {
    font-family: 'JetBrains Mono';
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 800;
}

.target-selector {
    background: #000;
    border: 1px solid var(--border);
    color: white;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    width: 150px;
}

.terminal-footer input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
}

.send-btn {
    background: var(--accent);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}

.send-btn:hover {
    filter: brightness(1.2);
}

.log-header {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    gap: 20px;
    align-items: center;
    font-family: 'JetBrains Mono';
    font-size: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.log-time {
    color: var(--text-muted);
}

.log-machine {
    color: var(--accent);
    font-weight: 700;
}

.log-cmd {
    color: #fff;
}

.log-body {
    padding: 1rem;
    font-family: 'JetBrains Mono';
    font-size: 0.8rem;
    color: #4ade80;
    background: #000;
    white-space: pre-wrap;
}

/* Shell Modal Styles */
.shell-modal-card {
    width: 90vw;
    height: 90vh;
    max-width: 1400px;
    background: #0c0c0c;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.shell-header {
    background: #1f1f1f;
    border-bottom: 1px solid #333;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shell-title {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: #e2e8f0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-shell {
    background: #ef4444;
    color: white;
    border: none;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
}

.shell-body {
    flex: 1;
    background: #000;
    padding: 15px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    overflow-y: auto;
    color: #d4d4d4;
    white-space: pre-wrap;
    word-break: break-all;
}

.shell-line {
    margin-bottom: 2px;
    line-height: 1.4;
}

.shell-footer {
    background: #1f1f1f;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #333;
}

.shell-footer .prompt {
    font-family: 'JetBrains Mono', monospace;
    color: #22c55e;
    font-weight: 700;
}

.shell-footer input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    outline: none;
}

.blink {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}