/* ==============================================================================
   NexNode Web Terminal Styling
   ============================================================================== */

.terminal-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 110px);
  background: #080c16;
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.terminal-header {
  height: 48px;
  min-height: 48px;
  background: #0d1222;
  border-bottom: 1px solid var(--bg-card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
}

.terminal-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.t-dot.red { background: #ef4444; }
.t-dot.yellow { background: #f59e0b; }
.t-dot.green { background: #10b981; }

.terminal-shell-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.terminal-shell-badge {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.terminal-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Quick Commands Bar */
.quick-commands-bar {
  background: rgba(13, 18, 34, 0.85);
  border-bottom: 1px solid var(--bg-card-border);
  padding: 0.45rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  white-space: nowrap;
}

.quick-cmd-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.quick-cmd-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bg-card-border);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-cmd-btn:hover {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border-color: rgba(6, 182, 212, 0.3);
}

/* Xterm Container */
#terminal-container {
  flex: 1;
  width: 100%;
  height: 100%;
  padding: 0.75rem 1rem;
  background: #080c16;
  overflow: hidden;
  position: relative;
}

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

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