/* ==========================================================================
   Dual G Web — Executive Command Center & Dock (Spotlight / Raycast HUD)
   100% Nítido, Alto Contraste, Sem Desfoque 3D, Foco em Alta Velocidade
   Compatível com Site Público (dualgweb.com) e CRM / Dashboard JARVIS
   ========================================================================== */

/* ---------- 1. Botão Flutuante Central de Comando (Inferior Direito) ---------- */
.orbital-trigger-btn,
.command-dock-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  height: 50px;
  padding: 0 16px 0 12px;
  border-radius: 25px;
  background: rgba(8, 12, 24, 0.94);
  border: 1.5px solid rgba(255, 217, 120, 0.45);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.85), 0 0 20px rgba(255, 217, 120, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: pointer;
  z-index: 100000;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffd978;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.orbital-trigger-btn:hover,
.command-dock-trigger:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: #ffd978;
  color: #ffffff;
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.95), 0 0 30px rgba(255, 217, 120, 0.45);
}

.command-trigger-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 217, 120, 0.3) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(255, 217, 120, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffd978;
  font-size: 0.95rem;
  box-shadow: 0 0 10px rgba(255, 217, 120, 0.25);
}

.command-trigger-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f1f5f9;
}

.command-trigger-kbd {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffd978;
  padding: 3px 7px;
  border-radius: 6px;
  line-height: 1;
}

/* ---------- 2. Modal Overlay Escuro de Luxo ---------- */
.command-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 16, 0.88);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  z-index: 100001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 60px 20px 30px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.command-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- 3. Caixa Principal do Command Center (Raycast HUD) ---------- */
.command-center-box {
  width: 100%;
  max-width: 780px;
  background: linear-gradient(165deg, rgba(13, 20, 36, 0.96) 0%, rgba(6, 10, 20, 0.98) 100%);
  border: 1.5px solid rgba(255, 217, 120, 0.35);
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95), 0 0 45px rgba(255, 217, 120, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
  transform: translateY(18px) scale(0.97);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.command-modal-overlay.active .command-center-box {
  transform: translateY(0) scale(1);
}

/* ---------- 4. Barra Superior de Busca & Identidade ---------- */
.command-search-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 16, 30, 0.6);
  position: relative;
}

.command-search-icon {
  font-size: 1.25rem;
  color: #ffd978;
  filter: drop-shadow(0 0 8px rgba(255, 217, 120, 0.4));
}

.command-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.command-search-input::placeholder {
  color: #64748b;
  font-weight: 500;
}

.command-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.command-badge-esc {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.command-badge-esc:hover {
  color: #fff;
  border-color: rgba(255, 217, 120, 0.4);
}

/* ---------- 5. Corpo de Comandos & Categorias ---------- */
.command-results-scroll {
  max-height: 520px;
  overflow-y: auto;
  padding: 16px 18px 22px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 217, 120, 0.3) transparent;
}

.command-results-scroll::-webkit-scrollbar {
  width: 6px;
}
.command-results-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 217, 120, 0.3);
  border-radius: 4px;
}

.command-category-group {
  margin-bottom: 20px;
}

.command-category-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd978;
  margin-bottom: 10px;
  padding-left: 6px;
}

.command-category-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00f2fe;
  box-shadow: 0 0 8px #00f2fe;
}

.command-item-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
  user-select: none;
}

.command-item-card:hover,
.command-item-card.focused {
  background: rgba(30, 41, 68, 0.75);
  border-color: rgba(255, 217, 120, 0.45);
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 217, 120, 0.12);
}

.command-item-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(10, 16, 32, 0.85);
  border: 1.5px solid var(--item-color, #ffd978);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--item-color, #ffd978);
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.5), inset 0 0 8px rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.command-item-card:hover .command-item-icon-box {
  transform: scale(1.08);
}

.command-item-details {
  flex: 1;
  min-width: 0;
}

.command-item-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.25;
}

.command-item-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 217, 120, 0.15);
  color: #ffd978;
  border: 1px solid rgba(255, 217, 120, 0.3);
  text-transform: uppercase;
}

.command-item-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.command-item-action {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.command-item-card:hover .command-item-action {
  color: #ffd978;
}

.command-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* ---------- 6. Rodapé do Command Center ---------- */
.command-footer {
  padding: 12px 22px;
  background: rgba(6, 10, 20, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: #64748b;
}

.command-footer-hints {
  display: flex;
  align-items: center;
  gap: 16px;
}

.command-footer-hints span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.command-footer-hints kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 2px 6px;
  color: #cbd5e1;
  font-family: monospace;
  font-size: 0.7rem;
}

/* ---------- 7. Dock Executivo Flutuante (macOS Style) ---------- */
.executive-floating-dock {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8, 14, 28, 0.88);
  border: 1.5px solid rgba(255, 217, 120, 0.3);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.85), 0 0 25px rgba(255, 217, 120, 0.12);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 30px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 99999;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-item-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  text-decoration: none;
}

.dock-item-btn:hover {
  transform: translateY(-8px) scale(1.18);
  background: rgba(30, 41, 68, 0.9);
  color: #ffd978;
  border-color: rgba(255, 217, 120, 0.5);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 217, 120, 0.3);
}

.dock-item-tooltip {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(4, 6, 14, 0.95);
  border: 1px solid rgba(255, 217, 120, 0.35);
  color: #ffd978;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.6);
}

.dock-item-btn:hover .dock-item-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Composite Icon: Livrinho com Play (Playbooks & Cartilhas) */
.dock-playbook-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25em;
  height: 1.25em;
  line-height: 1;
}

.dock-playbook-icon .fa-book-open {
  font-size: 1.05em;
  transition: transform 0.25s ease;
}

.dock-playbook-icon .fa-play {
  position: absolute;
  font-size: 0.38em;
  color: #ffd978;
  left: 52%;
  top: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.95));
  transition: transform 0.25s ease, color 0.25s ease;
}

.dock-item-btn:hover .dock-playbook-icon .fa-play {
  color: #ffffff;
  transform: translate(-50%, -50%) scale(1.15);
}

.dock-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 4px;
}

@media (max-width: 768px) {
  .command-modal-overlay {
    padding: 20px 12px;
  }
  .command-center-box {
    border-radius: 16px;
  }
  .command-item-desc {
    display: none;
  }
  .executive-floating-dock {
    display: none;
  }
  .orbital-trigger-btn {
    bottom: 16px;
    right: 16px;
    height: 46px;
    padding: 0 14px 0 10px;
  }
}
