/* ============================================================
   TELEGUIADA — Assistente de Voz (FAQ Bot)
   ============================================================ */

/* ── Botão flutuante (bottom-left) ── */
.tga-fab {
  position: fixed !important;
  bottom: 24px !important;
  left: 24px !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  background-color: #1A1108 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='2' width='6' height='12' rx='3'/%3E%3Cpath d='M5 10a7 7 0 0 0 14 0'/%3E%3Cline x1='12' y1='19' x2='12' y2='22'/%3E%3Cline x1='8' y1='22' x2='16' y2='22'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 26px 26px !important;
  border: none !important;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25) !important;
  cursor: pointer !important;
  z-index: 99998 !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.tga-fab:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 6px 24px rgba(0,0,0,0.3) !important;
}

/* Gravando: fundo vermelho + pulso */
.tga-fab.tga-fab-ativo {
  background-color: #EF4444 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='2' width='6' height='12' rx='3'/%3E%3Cpath d='M5 10a7 7 0 0 0 14 0'/%3E%3Cline x1='12' y1='19' x2='12' y2='22'/%3E%3Cline x1='8' y1='22' x2='16' y2='22'/%3E%3C/svg%3E") !important;
  animation: tga-pulse 1.2s ease-in-out infinite !important;
}

@keyframes tga-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
  50%       { box-shadow: 0 0 0 12px rgba(239,68,68,0); }
}

/* ── Tooltip do botão ── */
.tga-fab-tooltip {
  position: fixed !important;
  bottom: 90px !important;
  left: 24px !important;
  background: #1A1108 !important;
  color: white !important;
  font-size: 12px !important;
  font-family: Arial, sans-serif !important;
  padding: 6px 12px !important;
  border-radius: 20px !important;
  white-space: nowrap !important;
  pointer-events: none !important;
  z-index: 99997 !important;
  opacity: 0 !important;
  transform: translateY(4px) !important;
  transition: opacity 0.2s, transform 0.2s !important;
}
.tga-fab:hover + .tga-fab-tooltip,
.tga-fab-tooltip.tga-tooltip-show {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ── Painel de resposta ── */
.tga-panel {
  position: fixed !important;
  bottom: 92px !important;
  left: 16px !important;
  width: 300px !important;
  max-width: calc(100vw - 32px) !important;
  background: #fff !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18) !important;
  z-index: 99999 !important;
  overflow: hidden !important;
  font-family: Arial, sans-serif !important;
  animation: tga-slide-up 0.25s ease !important;
}

@keyframes tga-slide-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Header do painel */
.tga-panel-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 16px 10px !important;
  border-bottom: 1px solid #F0EBE5 !important;
  background: #1A1108 !important;
}

.tga-panel-title {
  font-size: 14px !important;
  font-weight: bold !important;
  color: #fff !important;
  font-family: Arial, sans-serif !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.tga-panel-close {
  background: rgba(255,255,255,0.15) !important;
  border: none !important;
  border-radius: 50% !important;
  width: 26px !important;
  height: 26px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 14px !important;
  color: #fff !important;
  line-height: 1 !important;
  padding: 0 !important;
  transition: background 0.15s !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.tga-panel-close:hover { background: rgba(255,255,255,0.3) !important; }

/* Corpo do painel */
.tga-panel-body {
  padding: 16px !important;
}

/* Pergunta do usuário */
.tga-panel-question {
  font-size: 13px !important;
  color: #6B6158 !important;
  font-style: italic !important;
  margin-bottom: 10px !important;
  padding: 8px 12px !important;
  background: #F7F4F0 !important;
  border-radius: 8px !important;
  line-height: 1.4 !important;
}

/* Resposta do assistente */
.tga-panel-answer {
  font-size: 14px !important;
  color: #1A1108 !important;
  line-height: 1.6 !important;
  margin-bottom: 14px !important;
}

/* Animação "Ouvindo..." */
.tga-listening {
  color: #E65C00 !important;
  font-weight: bold !important;
}

.tga-listening span {
  animation: tga-dot 1.4s infinite !important;
  opacity: 0 !important;
}
.tga-listening span:nth-child(1) { animation-delay: 0s !important; }
.tga-listening span:nth-child(2) { animation-delay: 0.2s !important; }
.tga-listening span:nth-child(3) { animation-delay: 0.4s !important; }

@keyframes tga-dot {
  0%, 80%, 100% { opacity: 0; }
  40%           { opacity: 1; }
}

/* Botão "Perguntar novamente" */
.tga-panel-again {
  display: block !important;
  width: 100% !important;
  padding: 11px !important;
  background: #FFF3EA !important;
  color: #E65C00 !important;
  border: 1px solid #F5CBA7 !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: bold !important;
  font-family: Arial, sans-serif !important;
  cursor: pointer !important;
  text-align: center !important;
  transition: background 0.15s !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.tga-panel-again:hover { background: #FFE8D0 !important; }

/* ── Sugestões de perguntas ── */
.tga-suggestions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-bottom: 14px !important;
}

.tga-sugest-btn {
  background: #F7F4F0 !important;
  color: #1A1108 !important;
  border: 1px solid #E0D8D0 !important;
  border-radius: 20px !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
  font-family: Arial, sans-serif !important;
  cursor: pointer !important;
  transition: background 0.15s, border-color 0.15s !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  text-align: left !important;
}
.tga-sugest-btn:hover {
  background: #FFF3EA !important;
  border-color: #E65C00 !important;
  color: #E65C00 !important;
}
