/* Botão assistente IA */
#agentContainer {
  position: fixed;
  bottom: 16px;
  right: 24px;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 16px;
  z-index: 3;
}

/* Botão Principal */
#voiceButton {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 18px 7px 8px;
  background: rgba(18, 25, 38, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 40px;
  color: #f8fafc;
  cursor: pointer;
  outline: none;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: 
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  animation: floatIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#voiceButton:hover {
  background: rgba(26, 36, 54, 0.95);
  border-color: rgba(0, 255, 231, 0.3);
  box-shadow: 
    0 14px 35px -5px rgba(0, 255, 231, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

/* Avatar */
.avatar-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Textos do Botão */
.button-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.agent-name {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
}

.agent-status {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: #94a3b8;
  transition: color 0.3s ease;
}

/* Ícone do Botão */
#voiceIcon {
  font-size: 22px;
  color: #00ffe7;
  margin-left: 4px;
  width: 22px;
  transition: color 0.3s ease;
}

#voiceButton.active {
  background: #D50005;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 25px rgba(213, 0, 5, 0.4);
}

#voiceButton.active #voiceIcon,
#voiceButton.active .agent-status {
  color: #ffffff;
}

#voiceButton.active .avatar-img {
  border-color: #fafafa;
}

/* Balão de Notificação */
#responseBox {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  white-space: nowrap;
  padding: 7px 12px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

#responseBox.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Ícone da Notificação */
#responseIcon {
  font-size: 14px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  background: linear-gradient(45deg, #00ffe7, #0078d7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#textoBox {
  font-family: "Inter", sans-serif;
  margin: 0;
  font-size: 14px;
  color: #e2e8f0;
  line-height: 1.4;
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media screen and (max-width: 767px) {
  #agentContainer { bottom: 8px; right: 16px; gap: 8px; }
  #responseBox { max-width: 100%; }
}
