/* Terminal Component Styles */

.terminal-panel {
  position: fixed;
  bottom: 0;
  left: 260px;
  right: 0;
  height: 300px;
  background: #0c0c0c;
  border-top: 1px solid #333;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  transition: transform 0.3s ease;
}

.terminal-panel.hidden {
  transform: translateY(100%);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #1a1a1a;
  border-bottom: 1px solid #333;
}

.terminal-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.terminal-tabs {
  display: flex;
  gap: 4px;
}

.term-tab {
  padding: 4px 12px;
  background: transparent;
  border: none;
  color: #888;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.term-tab:hover {
  background: #2a2a2a;
  color: #fff;
}

.term-tab.active {
  background: #333;
  color: #fff;
}

.terminal-close {
  background: transparent;
  border: none;
  color: #888;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.terminal-close:hover {
  color: #ff4444;
}

.terminal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.terminal-output {
  flex: 1;
  padding: 12px 16px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.6;
  color: #d4d4d4;
}

.terminal-line {
  margin-bottom: 4px;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-line.command {
  color: #d4d4d4;
}

.terminal-line.output {
  color: #9cdcfe;
}

.terminal-line.error {
  color: #f48771;
}

.terminal-line.success {
  color: #4ec9b0;
}

.terminal-line.warning {
  color: #dcdcaa;
}

.terminal-line.info {
  color: #569cd6;
}

.terminal-line.muted {
  color: #808080;
}

.terminal-input-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #1a1a1a;
  border-top: 1px solid #333;
}

.terminal-prompt {
  color: #4ec9b0;
  font-weight: 600;
  white-space: nowrap;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #d4d4d4;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}

.terminal-input::placeholder {
  color: #666;
}

/* Syntax highlighting in terminal */
.terminal-output .keyword { color: #569cd6; }
.terminal-output .string { color: #ce9178; }
.terminal-output .number { color: #b5cea8; }
.terminal-output .comment { color: #6a9955; }
.terminal-output .function { color: #dcdcaa; }

/* Scrollbar */
.terminal-output::-webkit-scrollbar {
  width: 8px;
}

.terminal-output::-webkit-scrollbar-track {
  background: #0c0c0c;
}

.terminal-output::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

.terminal-output::-webkit-scrollbar-thumb:hover {
  background: #555;
}
