/* HRAI Dashboard - Terminal */

.terminal-wrapper {
  background: #000;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-top: 1rem;
}

.terminal-header {
  background: #1e1e1e;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.terminal-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 1rem;
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.6;
}

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

.terminal-line.cmd { color: #58a6ff; }
.terminal-line.cmd::before { content: '$ '; color: #3fb950; }
.terminal-line.out { color: #e6edf3; }
.terminal-line.err { color: #f85149; }
.terminal-line.pending { color: #d29922; }

.terminal-line.pending::after {
  content: '...';
  animation: dots 1s steps(3, end) infinite;
}

@keyframes dots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}

.terminal-input-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.terminal-input {
  flex: 1;
  background: #1e1e1e;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}
.terminal-input:focus {
  outline: none;
  border-color: var(--accent);
}

.terminal-send {
  background: var(--accent);
  border: none;
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
}
.terminal-send:hover { opacity: 0.9; }
.terminal-send:disabled { opacity: 0.5; cursor: not-allowed; }

.terminal-kill {
  background: var(--danger);
  border: none;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
}
.terminal-kill:hover { opacity: 0.9; }
.terminal-kill:disabled { 
  opacity: 0.4; 
  cursor: not-allowed; 
  background: var(--border);
}
