/* terminal-panel.css — DECK floating terminal + context menu */

/* ── Floating terminal panel ─────────────────────────────────────────────── */
#deck-terminal-panel {
  position: fixed;
  z-index: 9000;
  top: 60px;
  right: 24px;
  width: 680px;
  height: 420px;
  min-width: 320px;
  min-height: 180px;
  background: #0d0d0d;
  border: 1px solid #4fe3ff44;
  border-radius: 6px;
  box-shadow: 0 0 28px #4fe3ff22, 0 4px 32px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'JetBrains Mono', 'Fira Mono', 'Cascadia Code', monospace;
}

#deck-terminal-panel[hidden] {
  display: none;
}

/* ── Drag titlebar ───────────────────────────────────────────────────────── */
#deck-term-titlebar {
  height: 32px;
  min-height: 32px;
  background: #111820;
  border-bottom: 1px solid #4fe3ff33;
  display: flex;
  align-items: center;
  padding: 0 8px;
  cursor: grab;
  user-select: none;
  gap: 8px;
}

#deck-term-titlebar:active {
  cursor: grabbing;
}

#deck-term-title {
  flex: 1;
  font-size: 11px;
  color: #4fe3ff;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#deck-term-close {
  width: 18px;
  height: 18px;
  border: 1px solid #4fe3ff55;
  border-radius: 3px;
  background: transparent;
  color: #4fe3ff;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

#deck-term-close:hover {
  background: #4fe3ff22;
  color: #fff;
}

/* ── xterm body ──────────────────────────────────────────────────────────── */
#deck-term-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  padding: 4px 4px 0 4px;
}

#deck-term-body .xterm {
  flex: 1;
  width: 100%;
}

/* ── SE resize handle ────────────────────────────────────────────────────── */
#deck-term-resizer {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  cursor: se-resize;
  z-index: 1;
}

#deck-term-resizer::after {
  content: '';
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #4fe3ff55;
  border-bottom: 2px solid #4fe3ff55;
}

/* ── Context menu ────────────────────────────────────────────────────────── */
#deck-ctx-menu {
  position: fixed;
  z-index: 9500;
  background: #0d1117;
  border: 1px solid #4fe3ff55;
  border-radius: 5px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.7), 0 0 12px #4fe3ff18;
  padding: 4px 0;
  min-width: 200px;
  max-width: 320px;
  font-family: 'JetBrains Mono', 'Fira Mono', monospace;
  font-size: 11px;
  display: none;
}

#deck-ctx-menu.visible {
  display: block;
}

.deck-ctx-item {
  padding: 6px 14px;
  color: #c8d8e8;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.1s;
}

.deck-ctx-item:hover {
  background: #4fe3ff18;
  color: #fff;
}

.deck-ctx-item.aggressive {
  color: #ff5b5b;
}

.deck-ctx-item.aggressive:hover {
  background: #ff5b5b18;
  color: #ff8888;
}
