/* Botão Flutuante (Gatilho) */
#ia-widget-trigger {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background: #ff0000;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Segoe UI', Roboto, sans-serif;
  transition: transform 0.2s ease;
}

#ia-widget-trigger:hover {
  transform: scale(1.05);
}

/* Caixa do Chat (Inicia Oculta) */
#ia-search-widget {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 380px;
  max-height: 550px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  font-family: 'Segoe UI', Roboto, sans-serif;
  color: #000000;
  display: none; /* Mantém oculto por padrão */
  flex-direction: column;
  z-index: 9999;
  border: 1px solid #e0e0e0;
  overflow: hidden;
}

/* Exibe o Chat */
#ia-search-widget.open {
  display: flex;
}

/* Cabeçalho */
.ia-header {
  background: #f8f9fa;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  font-weight: bold;
  font-size: 15px;
  color: #000000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ia-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ia-btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  color: #000000;
  font-size: 16px;
  padding: 2px 6px;
}

/* Corpo do Chat com Scroll */
.ia-chat-body {
  padding: 16px;
  overflow-y: auto;
  flex-grow: 1;
  max-height: 380px;
  color: #000000;
}

.ia-message {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #000000;
}

.ia-message.user {
  background: #e9ecef;
  align-self: flex-end;
}

.ia-message.bot {
  background: #f1f3f5;
  border: 1px solid #e9ecef;
}

/* Área de Entrada */
.ia-input-area {
  padding: 12px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 8px;
  background: #ffffff;
}

.ia-input-area input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 20px;
  outline: none;
  color: #000000;
  font-size: 14px;
}

.ia-input-area button {
  background: #000000;
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
}