/* xterm.js terminal container styling */

.terminal-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--wraith-bg-primary);
}

.terminal-container .xterm {
  height: 100%;
  padding: 4px;
}

.terminal-container .xterm-viewport {
  overflow-y: auto !important;
}

.terminal-container .xterm-screen {
  height: 100%;
}

/* Selection styling */
.terminal-container .xterm-selection div {
  background-color: rgba(88, 166, 255, 0.3) !important;
}

/* Cursor styling */
.terminal-container .xterm-cursor-layer {
  z-index: 4;
}

/* Scrollbar inside terminal */
.terminal-container .xterm-viewport::-webkit-scrollbar {
  width: 8px;
}

.terminal-container .xterm-viewport::-webkit-scrollbar-track {
  background: var(--wraith-bg-primary);
}

.terminal-container .xterm-viewport::-webkit-scrollbar-thumb {
  background: var(--wraith-border);
  border-radius: 4px;
}

.terminal-container .xterm-viewport::-webkit-scrollbar-thumb:hover {
  background: var(--wraith-text-muted);
}
