﻿@keyframes waveAnim {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1); }
}
@keyframes typingDot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-6px); opacity: 1; }
}
@keyframes ripple {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.2); opacity: 0; }
}
@keyframes floatBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-8px) scale(1.05); }
  60% { transform: translateY(-3px) scale(1.02); }
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.7); opacity: 0; }
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes recPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

#orangebd-smart-assistant-root .chat-scroll::-webkit-scrollbar { display: none; }
#orangebd-smart-assistant-root .chat-scroll { scrollbar-width: none; -ms-overflow-style: none; }
#orangebd-smart-assistant-root .toggle-float { animation: floatBounce 2.8s ease-in-out infinite; }
#orangebd-smart-assistant-root .toggle-float:hover { animation-play-state: paused; transform: scale(1.12) !important; }
#orangebd-smart-assistant-root .pulse-ring,
#orangebd-smart-assistant-root .pulse-ring2 {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255,102,0,0.6);
  animation: pulseRing 1.8s ease-out infinite;
}
#orangebd-smart-assistant-root .pulse-ring2 {
  border-color: rgba(255,102,0,0.4);
  animation-delay: 0.9s;
}
#orangebd-smart-assistant-root .stop-wrap { position: relative; }
#orangebd-smart-assistant-root .stop-wrap::before,
#orangebd-smart-assistant-root .stop-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(239,68,68,0.3);
  animation: ripple 1.4s ease-out infinite;
  pointer-events: none;
}
#orangebd-smart-assistant-root .stop-wrap::after { animation-delay: 0.7s; }
#orangebd-smart-assistant-root .chat-modal-anim { animation: fadeSlideIn 0.25s ease; }
#orangebd-smart-assistant-root .wave-bar {
  width: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.85);
  flex-shrink: 0;
  transform-origin: center;
}
#orangebd-smart-assistant-root .wave-bar.active { animation: waveAnim 0.5s ease-in-out infinite alternate; }
#orangebd-smart-assistant-root .rec-wave-bar {
  width: 3px;
  border-radius: 2px;
  background: #ff6600;
  flex-shrink: 0;
  animation: waveAnim 0.8s ease-in-out infinite;
}
#orangebd-smart-assistant-root .typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  animation: typingDot 1s ease-in-out infinite;
}
#orangebd-smart-assistant-root .rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
  animation: recPulse 1.2s ease-in-out infinite;
}
#orangebd-smart-assistant-root #inputArea {
  height: 60px;
  min-height: 60px;
  max-height: 60px;
}
#orangebd-smart-assistant-root #recBar {
  height: 38px;
  min-height: 38px;
}
#orangebd-smart-assistant-root #textInput {
  height: 38px;
  min-height: 38px;
}
@media (max-width: 480px) {
  #orangebd-smart-assistant-root #chatModal {
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    border-radius: 0 !important;
  }
  #orangebd-smart-assistant-root #inputArea {
    height: 64px;
    min-height: 64px;
    max-height: 64px;
    padding-bottom: env(safe-area-inset-bottom, 8px);
  }
}
