/* Terminal Header */
.terminal-header {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background-color: #2d2d44;
  border-bottom: 2px solid #555;
  cursor: move;
}

.terminal-buttons {
  display: flex;
  gap: 6px;
}

.terminal-buttons button {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
}

.terminal-title {
  margin-left: 12px;
  color: #9d4edd;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
}

/* Terminal Body */
.terminal-body {
  background-color: #1e1e2e;
  padding: 12px;
  height: calc(100% - 40px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: text;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

.terminal-output {
  flex: 1;
  overflow-y: auto;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  line-height: 1.4;
  color: #9d4edd;
  margin-bottom: 8px;
  text-shadow: 0 0 2px rgba(157, 78, 221, 0.3);
}

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

.terminal-line.error {
  color: #ff6b6b;
}

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

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

.user {
  color: #9d4edd;
  font-weight: bold;
}

.path {
  color: #9d4edd;
}

.terminal-input-inline {
  background: transparent;
  border: none;
  outline: none;
  color: #9d4edd;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  display: inline;
  width: auto;
  min-width: 200px;
  caret-color: #9d4edd;
}

/* Root command styling */
.terminal-line.root {
  color: #ff0000;
  text-shadow: 0 0 5px #ff0000;
}

.terminal-input-inline::placeholder {
  color: #666;
}

/* Scrollbar styling */
.terminal-output::-webkit-scrollbar {
  width: 8px;
}

.terminal-output::-webkit-scrollbar-track {
  background: #222;
}

.terminal-output::-webkit-scrollbar-thumb {
  background: #9d4edd;
  border-radius: 4px;
}

.terminal-output::-webkit-scrollbar-thumb:hover {
  background: #9333ea;
}
