/*-----------------------------------*\
  #TERMINAL
\*-----------------------------------*/

.terminal-container {
  background-color: #0d0d0d;
  border: 1px solid var(--jet);
  border-radius: 8px;
  padding: 16px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.6;
  color: #f0f0f0;
  max-height: 520px;
  overflow-y: auto;
}

.terminal-output {
  white-space: pre-wrap;
  word-break: break-word;
  color: #f0f0f0;
  margin-bottom: 2px;
}

.terminal-output.command {
  color: #888;
  margin-top: 8px;
}

.terminal-output.error {
  color: #f28b82;
}

.terminal-line {
  display: flex;
  align-items: baseline;
  margin-top: 8px;
}

/* Ubuntu-style prompt colours */
.tp-user   { color: #4CAF50; font-weight: bold; }
.tp-colon  { color: #f0f0f0; }
.tp-path   { color: #60a8ff; font-weight: bold; }
.tp-dollar { color: #f0f0f0; white-space: pre; }

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #f0f0f0;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  outline: none;
  padding: 0;
  margin: 0;
  caret-color: #f0f0f0;
}

/* Rendered Markdown inside terminal */
.terminal-markdown { color: #f0f0f0; }
.terminal-markdown h1, .terminal-markdown h2 { color: #60a8ff; font-size: 1em; margin: 8px 0 4px; }
.terminal-markdown hr { border-color: var(--jet); margin: 6px 0; }
.terminal-markdown strong { color: #fff; }
.terminal-markdown a { color: #4CAF50; }
.terminal-markdown ul { padding-left: 20px; }
.terminal-markdown table { border-collapse: collapse; }
.terminal-markdown th, .terminal-markdown td { border: 1px solid var(--jet); padding: 2px 10px; }

/* ls colours */
.ls-dir  { color: #60a8ff; font-weight: bold; }
.ls-file { color: #f0f0f0; }

/* Scrollbar */
.terminal-container::-webkit-scrollbar        { width: 6px; }
.terminal-container::-webkit-scrollbar-track  { background: transparent; }
.terminal-container::-webkit-scrollbar-thumb  { background: var(--jet); border-radius: 3px; }
