/* Botão assistente IA */
#voiceButton {
  position: fixed;
  bottom: 25px;
  right: 24px;
  width: 64px;
  height: 64px;
  font-size: 27px;
  background: #528B8B;
  border: none;
  border-radius: 50%;
  color: #e2e8f0;
  cursor: pointer;
  outline: none;
  display: flex;
  opacity: 0;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow:
	inset -8px -8px 20px rgba(0, 70, 75, 0.25), /* escurece o canto inferior */
	0 8px 25px rgba(0,255,255, 0.25);
  transition:
	box-shadow 0.25s ease,
	bottom 0.3s ease-in-out 1.2s;
  animation: floatIn 0.6s ease-out 3s forwards;
}

/* Animação de entrada */
@keyframes floatIn {
  from {
	transform: translateY(20px);
	opacity: 0;
  }
  to {
	transform: translateY(0);
	opacity: 1;
  }
}

#voiceButton:hover {
  box-shadow:
	inset -8px -8px 20px rgba(0, 70, 75, 0.25),
	0 10px 28px rgba(0,255,255, 0.32);
}

#voiceButton.active {
  width: 44px;
  height: 44px;
  color: #FFF;
  font-size: 18px;
  background: #D50005;
  bottom: calc(25px + (64px - 44px)/2);
  right: calc(24px + (64px - 44px)/2);
  box-shadow: 0 3px 10px rgba(255, 60, 88, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
}

#voiceButton.active.slideDown { bottom: -90px; }

#voiceButton.active,
#voiceButton.active.slideDown {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#voiceButton::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0); /* mantém o fundo */
  transition: background 0.2s ease;
  z-index: 0;
}

#voiceButton:hover::before { background: rgba(255, 255, 255, 0.1); }
#voiceButton.active:hover::before { background: rgba(0, 0, 0, 0.1); }

#voiceButton * {
  position: relative;
  z-index: 1;
}

/* Balão de notificação IA */
#responseBox {
  position: fixed;
  bottom: -90px;
  right: 27px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
  padding: 0 63px 0 13px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #AAA;
  border-left: 4px solid #00ffe7;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 255, 231, 0.2), 0 2px 6px rgba(0, 0, 0, 0.3);
  height: 62px;
  min-width: 240px;
  z-index: 3;
  box-sizing: border-box;
  border-right: 2px solid rgba(255, 255, 255, 0.1);
  border-top: 2px solid rgba(255, 255, 255, 0.06);
  border-bottom: 2px solid rgba(255, 255, 255, 0.06);
  transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#responseBox.visible { bottom: 26px; }

/* Texto */
#textoBox {
  flex: 1;
  margin: 0;
  line-height: 1.3;
}

/* Ícone de notificação */
#responseIcon {
  font-size: 20px;
  width: 24px;
  height: 22px;
  text-align: center;
  background: linear-gradient(45deg, #00ffe7, #0078d7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 4px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media screen and (max-width: 767px) {
	/* Estilos para smartphones */
	#responseBox {
	  right: 16px;
	  max-width: calc(100% - 40px);
	}

	#responseBox.visible { bottom: 16px; }

	#voiceButton {
	  bottom: 17px;
	  right: 16px;
	  width: 60px;
	  height: 60px;
	}

	#voiceButton.active {
	  bottom: calc(17px + (60px - 44px)/2);
	  right: calc(16px + (60px - 44px)/2);
	}
}
