/**
 * Public styles for Voyager 2 ChatBot - Versão Aprimorada
 */
:root {
  --voyager-primary-color: #4285f4;
  --voyager-secondary-color: #8d00ff;
  --voyager-accent-color: #c50491;
  --voyager-text-color: #333333;
  --voyager-light-text: #6e6e6e;
  --voyager-bg-color: #ffffff;
  --voyager-light-bg: #f8f9fa;
  --voyager-border-color: #e6e6e6;
  --voyager-border-radius: 16px;
  --voyager-box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  --voyager-font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --voyager-transition: all 0.3s ease;
  --voyager-warning-color: #ff9800;
  --voyager-error-color: #f44336;
}



/* Container */
.voyager-chatbot-container {
  position: fixed;
  z-index: 9999;
  font-family: var(--voyager-font-family);
  display: block !important; /* Forçar exibição */
}

/* Positioning classes */
.voyager-bubble-bottom-right {
  right: 30px;
  bottom: 30px;
}

.voyager-bubble-bottom-left {
  left: 30px;
  bottom: 30px;
}

.voyager-bubble-top-right {
  right: 30px;
  top: 30px;
}

.voyager-bubble-top-left {
  left: 30px;
  top: 30px;
}

/* Chat Bubble - Novo Design */
.voyager-chat-bubble {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--voyager-primary-color),
    var(--voyager-secondary-color),
    var(--voyager-accent-color)
  );
  background-size: 300% 300%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(141, 0, 255, 0.7);
  transition: var(--voyager-transition);
  animation: gradientShift 8s ease infinite;
  position: relative;
  overflow: visible;
  z-index: 9990; /* Aumentar o z-index para garantir visibilidade */
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.voyager-chat-bubble:hover {
  transform: scale(1.1);
  animation: gradientShift 3s ease infinite;
}

.voyager-bubble-inner {
  width: 40px;
  height: 40px;
  display: flex !important; /* Forçar exibição */
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 50%;
  box-shadow: none;
  overflow: visible;
  position: relative;
  z-index: 9991; /* Maior que a bolha */
}

.voyager-logo {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.voyager-default-icon {
  color: white; /* Alterado para branco para melhor contraste */
}

.voyager-tooltip {
  position: absolute;
  bottom: 70px;
  right: 0;
  background: linear-gradient(135deg, var(--voyager-primary-color), var(--voyager-secondary-color));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--voyager-transition);
  pointer-events: none;
}

.voyager-chat-bubble:hover .voyager-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* Chat Window */
.voyager-chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 420px;
  height: 80vh; /* Aumentado para 80% da altura da viewport */
  max-height: 90vh; /* Mantido em 90% da altura da viewport */
  background-color: var(--voyager-bg-color);
  border-radius: var(--voyager-border-radius);
  box-shadow: var(--voyager-box-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  display: none;
  transition: var(--voyager-transition);
  border: 1px solid var(--voyager-border-color);
}

.voyager-bubble-bottom-left .voyager-chat-window {
  right: auto;
  left: 0;
}

.voyager-bubble-top-right .voyager-chat-window {
  bottom: auto;
  top: 80px;
}

.voyager-bubble-top-left .voyager-chat-window {
  right: auto;
  left: 0;
  bottom: auto;
  top: 80px;
}

/* Chat Header - Redesenhado com gradiente dinâmico */
.voyager-chat-header {
  background: linear-gradient(
    135deg,
    var(--voyager-primary-color),
    var(--voyager-secondary-color),
    var(--voyager-accent-color)
  );
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
  padding: 15px 20px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  border-top-left-radius: var(--voyager-border-radius);
  border-top-right-radius: var(--voyager-border-radius);
  z-index: 10; /* Garantir que o cabeçalho fique acima do conteúdo */
}

.voyager-chat-header:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--voyager-primary-color), var(--voyager-accent-color));
  opacity: 0.7;
}

.voyager-chat-title {
  display: flex;
  align-items: center;
}

.voyager-chat-avatar {
  width: 36px;
  height: 36px;
  background: transparent; /* Alterado para transparente */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  box-shadow: none; /* Removido o box-shadow */
  overflow: hidden;
}

.voyager-chat-avatar img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

.voyager-chat-title span {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.voyager-chat-status {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 2px;
}

.voyager-chat-actions {
  display: flex;
}

.voyager-chat-action-button {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 6px;
  margin-left: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.voyager-chat-action-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Chat Messages - Redesenhado */
.voyager-chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background-color: var(--voyager-light-bg);
  scroll-behavior: smooth;
  height: auto; /* Alterado para auto */
  min-height: 200px; /* Altura mínima */
  position: relative;
}

.voyager-message {
  margin-bottom: 16px;
  max-width: 85%;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.voyager-message-bot {
  margin-right: auto;
}

.voyager-message-user {
  margin-left: auto;
}

/* Adicionar estilos para melhorar a exibição de texto extraído */
.voyager-message-content {
  padding: 12px 16px;
  border-radius: 18px;
  position: relative;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap; /* Preservar quebras de linha */
  word-wrap: break-word; /* Quebrar palavras longas */
  overflow-wrap: break-word; /* Garantir que palavras longas sejam quebradas */
}

.voyager-message-content p {
  margin: 0 0 8px 0;
}

.voyager-message-content p:last-child {
  margin-bottom: 0;
}

.voyager-message-bot .voyager-message-content {
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border-bottom-left-radius: 5px;
  color: var(--voyager-text-color);
}

/* Mensagem do usuário com gradiente dinâmico */
.voyager-message-user .voyager-message-content {
  background: linear-gradient(
    135deg,
    var(--voyager-primary-color),
    var(--voyager-secondary-color),
    var(--voyager-accent-color)
  );
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
  color: white;
  border-bottom-right-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.voyager-message-timestamp {
  font-size: 10px;
  margin-top: 4px;
  opacity: 0.7;
  text-align: right;
}

.voyager-message-bot .voyager-message-timestamp {
  color: var(--voyager-light-text);
  text-align: left;
}

.voyager-message-user .voyager-message-timestamp {
  color: var(--voyager-light-text);
}

/* Message Limit Warning */
.voyager-message-limit-warning {
  background-color: rgba(255, 152, 0, 0.1);
  border: 1px solid rgba(255, 152, 0, 0.3);
  color: var(--voyager-warning-color);
  padding: 10px 15px;
  margin: 0;
  display: flex;
  align-items: center;
  font-size: 13px;
  animation: fadeIn 0.3s ease;
}

.voyager-message-limit-warning svg {
  margin-right: 8px;
  stroke: var(--voyager-warning-color);
}

.voyager-message-limit-warning.error {
  background-color: rgba(244, 67, 54, 0.1);
  border-color: rgba(244, 67, 54, 0.3);
  color: var(--voyager-error-color);
}

.voyager-message-limit-warning.error svg {
  stroke: var(--voyager-error-color);
}

/* File attachments in messages - Redesenhado */
.voyager-file-attachment {
  display: flex;
  align-items: center;
  margin: 8px 0;
  padding: 8px 12px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  font-size: 13px;
}

.voyager-file-attachment-icon {
  margin-right: 8px;
  color: var(--voyager-primary-color);
}

.voyager-file-attachment a {
  color: var(--voyager-primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.voyager-file-attachment a:hover {
  text-decoration: underline;
}

/* Audio message indicator */
.voyager-audio-message {
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 18px;
  padding: 8px 12px;
  margin: 8px 0;
}

.voyager-audio-icon {
  margin-right: 8px;
  color: var(--voyager-accent-color);
}

.voyager-audio-waveform {
  display: flex;
  align-items: center;
  height: 20px;
}

.voyager-audio-waveform span {
  display: inline-block;
  width: 2px;
  height: 10px;
  margin: 0 1px;
  background-color: var(--voyager-accent-color);
  border-radius: 1px;
}

.voyager-audio-duration {
  margin-left: 8px;
  font-size: 12px;
  color: var(--voyager-light-text);
}

/* Chat Footer - Redesenhado */
.voyager-chat-footer {
  padding: 15px;
  border-top: 1px solid var(--voyager-border-color);
  background-color: white;
  position: relative;
  z-index: 10; /* Garantir que o rodapé fique acima do conteúdo */
}

.voyager-chat-input-container {
  display: flex;
  border-radius: 24px;
  border: 1px solid var(--voyager-border-color);
  padding: 8px 15px;
  background-color: var(--voyager-light-bg);
  transition: border-color 0.3s;
}

.voyager-chat-input-container:focus-within {
  border-color: var(--voyager-primary-color);
  box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.1);
}

.voyager-chat-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  resize: none;
  max-height: 120px;
  font-family: inherit;
  font-size: 14px;
  color: var(--voyager-text-color);
  padding: 4px 0;
}

.voyager-chat-input::placeholder {
  color: var(--voyager-light-text);
}

.voyager-send-button {
  background: transparent;
  border: none;
  color: var(--voyager-primary-color);
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.voyager-send-button:hover {
  transform: scale(1.1);
}

.voyager-chat-attachments {
  display: flex;
  margin-bottom: 10px;
}

.voyager-attachment-button,
.voyager-voice-button {
  background: transparent;
  border: none;
  color: var(--voyager-primary-color);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  margin-right: 10px;
  transition: background-color 0.3s;
}

.voyager-attachment-button:hover,
.voyager-voice-button:hover {
  background-color: rgba(66, 133, 244, 0.1);
}

.voyager-attachment-button svg,
.voyager-voice-button svg {
  transition: transform 0.2s;
}

.voyager-attachment-button:hover svg,
.voyager-voice-button:hover svg {
  transform: scale(1.1);
}

/* Tooltips para botões de anexo e áudio */
.voyager-attachment-button,
.voyager-voice-button {
  position: relative;
}

.voyager-attachment-button::after,
.voyager-voice-button::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.voyager-attachment-button:hover::after,
.voyager-voice-button:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-10px);
}

.voyager-file-input,
input[type="file"],
.voyager-chat-attachments input[type="file"],
.voyager-chatbot-container input[type="file"] {
  display: none !important;
  position: absolute !important;
  left: -99999px !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

/* Esconder qualquer elemento de input de arquivo que apareça */
.voyager-chat-footer input,
.voyager-chat-attachments input {
  display: none !important;
}

/* Garantir que apenas os botões sejam visíveis */
.voyager-chat-attachments {
  display: flex;
}

.voyager-attachment-button,
.voyager-voice-button {
  display: flex !important;
}

/* Attachment Preview - Redesenhado */
.voyager-attachment-preview {
  padding: 0 15px;
  margin-bottom: 10px;
  display: none;
  max-height: 150px;
  overflow-y: auto;
}

.voyager-attachment-item {
  display: flex;
  align-items: center;
  background-color: var(--voyager-light-bg);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 6px;
  font-size: 13px;
  border: 1px solid var(--voyager-border-color);
  transition: background-color 0.2s;
  flex-wrap: wrap;
}

.voyager-attachment-item:hover {
  background-color: #f0f2f5;
}

.voyager-attachment-icon {
  margin-right: 8px;
  color: var(--voyager-primary-color);
}

.voyager-attachment-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--voyager-text-color);
}

.voyager-attachment-size {
  margin: 0 8px;
  font-size: 11px;
  color: var(--voyager-light-text);
}

.voyager-attachment-remove {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.voyager-attachment-remove:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #666;
}

/* Botão de enviar anexo */
.voyager-attachment-send {
  background: none;
  border: none;
  color: var(--voyager-primary-color);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  transition: background-color 0.2s;
  background-color: rgba(66, 133, 244, 0.1);
}

.voyager-attachment-send:hover {
  background-color: rgba(66, 133, 244, 0.2);
}

.voyager-attachment-send svg {
  margin-right: 4px;
}

/* Ações de arquivo */
.voyager-attachment-actions {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 8px;
  gap: 5px;
}

.voyager-attachment-action {
  background: rgba(66, 133, 244, 0.1);
  border: none;
  color: var(--voyager-primary-color);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  transition: background-color 0.2s;
}

.voyager-attachment-action:hover {
  background-color: rgba(66, 133, 244, 0.2);
}

/* Recording indicator - Redesenhado */
.voyager-recording-indicator {
  display: none;
  background-color: rgba(197, 4, 145, 0.08);
  padding: 10px 15px;
  border-radius: 20px;
  margin: 0 15px 10px;
  align-items: center;
  border: 1px solid rgba(197, 4, 145, 0.2);
}

.voyager-recording-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--voyager-accent-color);
  margin-right: 10px;
  animation: record-pulse 1.5s ease infinite;
}

@keyframes record-pulse {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
  100% {
    transform: scale(0.8);
    opacity: 1;
  }
}

.voyager-recording-time {
  font-size: 13px;
  color: var(--voyager-accent-color);
  margin-left: 5px;
  font-weight: 500;
}

.voyager-stop-recording {
  background: none;
  border: none;
  color: var(--voyager-accent-color);
  cursor: pointer;
  margin-left: auto;
  padding: 5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.voyager-stop-recording:hover {
  background-color: rgba(197, 4, 145, 0.1);
}

/* Loading indicator - Redesenhado */
.voyager-loading {
  display: inline-block;
  margin-right: 5px;
}

.voyager-loading span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--voyager-primary-color);
  margin: 0 2px;
  animation: loading 1.5s infinite;
}

.voyager-loading span:nth-child(2) {
  animation-delay: 0.2s;
}

.voyager-loading span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes loading {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Scrollbar styling */
.voyager-chat-messages::-webkit-scrollbar,
.voyager-attachment-preview::-webkit-scrollbar {
  width: 6px;
}

.voyager-chat-messages::-webkit-scrollbar-track,
.voyager-attachment-preview::-webkit-scrollbar-track {
  background: transparent;
}

.voyager-chat-messages::-webkit-scrollbar-thumb,
.voyager-attachment-preview::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.voyager-chat-messages::-webkit-scrollbar-thumb:hover,
.voyager-attachment-preview::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

/* Responsive styles - Completamente redesenhado */
@media (max-width: 768px) {
  .voyager-chat-window {
    width: 90%;
    max-width: 420px;
    height: 90vh; /* Usar altura relativa */
    bottom: 80px;
    right: 5%;
    left: 5%;
    margin: 0 auto;
  }

  .voyager-chat-messages {
    height: auto; /* Altura automática */
    flex: 1; /* Usar flexbox para ocupar espaço disponível */
  }

  .voyager-bubble-bottom-right .voyager-chat-window,
  .voyager-bubble-bottom-left .voyager-chat-window {
    left: 5%;
    right: 5%;
  }

  .voyager-bubble-top-right .voyager-chat-window,
  .voyager-bubble-top-left .voyager-chat-window {
    left: 5%;
    right: 5%;
    top: 80px;
  }

  .voyager-chat-footer {
    padding: 10px;
  }

  .voyager-chat-messages {
    padding: 15px;
  }

  .voyager-message {
    max-width: 90%;
  }

  .voyager-tooltip {
    display: none;
  }

  .voyager-attachment-actions {
    flex-direction: column;
  }
}

/* Estilo para tela cheia no mobile */
.voyager-fullscreen-mobile {
  width: 100% !important;
  height: 100vh !important;
  max-height: 100vh !important;
  bottom: 0 !important;
  right: 0 !important;
  left: 0 !important;
  top: 0 !important;
  border-radius: 0 !important;
  position: fixed !important;
  margin: 0 !important;
  z-index: 9999 !important; /* Aumentado para 9999 */
}

.voyager-fullscreen-mobile .voyager-chat-header {
  border-radius: 0 !important;
}

@media (max-width: 480px) {
  .voyager-chat-window {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    bottom: 0;
    right: 0;
    left: 0;
    border-radius: 0;
    position: fixed;
    z-index: 9999; /* Aumentado para 9999 */
  }

  /* Garantir que o rodapé esteja sempre visível */
  .voyager-chat-footer {
    position: sticky;
    bottom: 0;
    background-color: white;
    z-index: 9999;
    padding-bottom: env(safe-area-inset-bottom, 10px); /* Suporte para iPhones com notch */
  }

  /* Ajustar a área de mensagens para não sobrepor o rodapé */
  .voyager-chat-messages {
    padding-bottom: 70px; /* Espaço extra para garantir que as mensagens não fiquem sob o rodapé */
  }
}

/* Suporte para orientação paisagem em dispositivos móveis */
@media (max-height: 500px) and (orientation: landscape) {
  .voyager-chat-window {
    height: 90vh;
    max-height: 90vh;
    bottom: 70px;
  }

  .voyager-chat-messages {
    height: auto;
    flex: 1;
    padding: 10px;
  }

  .voyager-message {
    margin-bottom: 10px;
  }

  .voyager-message-content {
    padding: 8px 12px;
  }

  .voyager-chat-footer {
    padding: 8px 10px;
  }
}

/* Melhorar acessibilidade para toque */
@media (hover: none) and (pointer: coarse) {
  /* Dispositivos com toque (sem hover) */
  .voyager-attachment-button,
  .voyager-voice-button,
  .voyager-send-button,
  .voyager-chat-action-button,
  .voyager-attachment-remove,
  .voyager-stop-recording {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Animações e transições */
.voyager-chat-window.voyager-show {
  animation: slideIn 0.3s ease forwards;
}

.voyager-chat-window.voyager-hide {
  animation: slideOut 0.3s ease forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* Cores dinâmicas - Será controlado via JavaScript */
.voyager-color-scheme-1 {
  --voyager-primary-color: #4285f4;
  --voyager-secondary-color: #8d00ff;
  --voyager-accent-color: #c50491;
}

.voyager-color-scheme-2 {
  --voyager-primary-color: #00a0b0;
  --voyager-secondary-color: #6a00ff;
  --voyager-accent-color: #cc0066;
}

.voyager-color-scheme-3 {
  --voyager-primary-color: #7b68ee;
  --voyager-secondary-color: #3a86ff;
  --voyager-accent-color: #ff006e;
}

.voyager-color-scheme-4 {
  --voyager-primary-color: #8338ec;
  --voyager-secondary-color: #3a86ff;
  --voyager-accent-color: #ff006e;
}

.voyager-color-scheme-5 {
  --voyager-primary-color: #5e60ce;
  --voyager-secondary-color: #5390d9;
  --voyager-accent-color: #7400b8;
}

/* Indicadores de funcionalidade */
.voyager-feature-indicator {
  background-color: rgba(66, 133, 244, 0.1);
  border-radius: 4px;
  padding: 8px 12px;
  margin: 10px 0;
  font-size: 13px;
  color: var(--voyager-primary-color);
  display: flex;
  align-items: center;
}

.voyager-feature-indicator svg {
  margin-right: 8px;
}

.voyager-feature-indicator.audio {
  background-color: rgba(197, 4, 145, 0.1);
  color: var(--voyager-accent-color);
}

.voyager-feature-indicator.files {
  background-color: rgba(141, 0, 255, 0.1);
  color: var(--voyager-secondary-color);
}

/* Estilos para visualização de transcrição de áudio */
.voyager-audio-transcription {
  background-color: rgba(66, 133, 244, 0.05);
  border-left: 3px solid var(--voyager-primary-color);
  padding: 10px 15px;
  margin: 10px 0;
  font-style: italic;
  color: var(--voyager-text-color);
  font-size: 13px;
}

.voyager-audio-transcription::before {
  content: "Transcrição: ";
  font-weight: bold;
  color: var(--voyager-primary-color);
}

/* Estilos para resultados de processamento de arquivos */
.voyager-file-processing-result {
  background-color: rgba(66, 133, 244, 0.05);
  border-radius: 8px;
  padding: 12px 15px;
  margin: 10px 0;
  font-size: 13px;
  border: 1px solid rgba(66, 133, 244, 0.2);
}

.voyager-file-processing-result-title {
  font-weight: bold;
  color: var(--voyager-primary-color);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.voyager-file-processing-result-title svg {
  margin-right: 8px;
}

.voyager-file-processing-result-content {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 5px;
}

/* Estilos para mensagens de erro */
.voyager-error-message {
  background-color: rgba(244, 67, 54, 0.05);
  border-left: 3px solid var(--voyager-error-color);
  padding: 10px 15px;
  margin: 10px 0;
  color: var(--voyager-error-color);
  font-size: 13px;
}

/* Adicionar estilo para texto extraído de documentos */
.voyager-document-content {
  max-height: 300px;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  padding: 10px;
  margin: 8px 0;
  font-family: monospace;
  font-size: 13px;
  white-space: pre-wrap;
}

/* Melhorar a rolagem para conteúdo longo */
.voyager-chat-messages {
  scroll-behavior: smooth;
}

/* Adicionar estilos para o Elune Bot */
/* Estilos para o Elune Bot */
.elune-bot-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex !important; /* Forçar exibição */
  align-items: center;
  justify-content: center;
  /* Removida a animação: animation: elune-bot-float 4s ease-in-out infinite; */
  z-index: 9991; /* Maior que a bolha */
}

.elune-bot-icon {
  position: relative;
  z-index: 9991; /* Maior que a bolha */
  color: #ffffff;
  width: 36px; /* Aumentado para 34px (32px + 2px) */
  height: 36px; /* Aumentado para 34px (32px + 2px) */
  stroke: #ffffff;
  stroke-width: 2;
  fill: none;
  filter: drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.5));
  display: block !important; /* Forçar exibição */
}

.elune-bot-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  filter: blur(5px);
  z-index: 1;
  animation: elune-bot-pulse 4s ease-in-out infinite;
}

.elune-bot-eye {
  stroke-width: 2.5; /* Aumentado para melhor visibilidade */
  stroke-linecap: round;
  transform-origin: center;
  transition: transform 0.1s;
}

/* Ajustar o tamanho do ícone no cabeçalho */
.voyager-chat-avatar .elune-bot-icon {
  width: 28px;
  height: 28px;
}

/* Animações para o Elune Bot */
@keyframes elune-bot-float {
  0%,
  50%,
  100% {
    transform: translateY(0px); /* Sem movimento vertical */
  }
}

@keyframes elune-bot-pulse {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
}

/* Garantir que a animação de piscar funcione */
@keyframes blink {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.1);
  }
}

/* Adicionar animação para as antenas */
.elune-bot-antenna {
  animation: antenna-pulse 3s ease-in-out infinite;
  transform-origin: center;
}

@keyframes antenna-pulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

/* Garantir visibilidade em dispositivos móveis */
@media (max-width: 768px) {
  .elune-bot-container {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .elune-bot-icon {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .voyager-bubble-inner {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

