/* ═══════════════════════════════════════════════════════════════════
   LUCID × QRUCIBLE — Guide Panel Dual-Tab Styles
   Append to qrucible.css
   ═══════════════════════════════════════════════════════════════════ */

/* ── Tab Bar ──────────────────────────────────────────────────────────── */
.qr-guide-tab-bar {
  display: flex;
  border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.08));
  background: var(--bg-secondary);
  border-radius: var(--radius-lg, 12px) 0 0 0;
  flex-shrink: 0;
  overflow: hidden;
}

.qr-guide-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  font-size: var(--text-xs, 12px);
  font-weight: 500;
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  border-bottom: 2px solid transparent;
  position: relative;
}

.qr-guide-tab:hover {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
}

.qr-guide-tab.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}

.qr-guide-tab svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.qr-guide-tab.active svg {
  opacity: 1;
  stroke: var(--accent-cyan);
}

/* ── Tab Panes ─────────────────────────────────────────────────────── */
.qr-guide-pane {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.qr-guide-pane.active {
  display: flex;
}

/* ── LUCID Container Override ──────────────────────────────────── */
.guide-panel #lucid-panel {
  position: relative;
  width: 100%;
  height: 100%;
}

.guide-panel #lucid-panel #lucid-embed-root {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  top: auto !important;
  left: auto !important;
  pointer-events: all !important;
}

/* Force the LUCID widget into sidebar flow inside guide panel */
.guide-panel .qr-guide-pane#qr-guide-pane-lucid {
  overflow: hidden;
  position: relative;
}

/* ── Quick-Action Chips ───────────────────────────────────────── */
.lucid-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.06));
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.lucid-quick-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full, 9999px);
  border: 1px solid rgba(6,182,212,0.25);
  background: var(--accent-cyan-dim, rgba(6,182,212,0.1));
  color: var(--accent-cyan, #06B6D4);
  font-size: 10px;
  font-weight: 500;
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
  line-height: 1.4;
}

.lucid-quick-chip:hover {
  background: rgba(6,182,212,0.18);
  border-color: rgba(6,182,212,0.4);
}

.lucid-quick-chip:active {
  transform: scale(0.97);
}

/* ── Hide old chat FAB when LUCID is active ────────────────────── */
body.lucid-active .chat-fab,
body.lucid-active .chat-widget-panel {
  display: none !important;
}

/* ── LUCID Loading / Error States ────────────────────────────── */
@keyframes lucid-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.1); }
}

.lucid-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

#lucid-retry-btn:hover {
  background: rgba(6, 182, 212, 0.18);
  border-color: rgba(6, 182, 212, 0.4);
}
