/*
  Bu stil dosyası Mrs.Xuma sanal asistanı için temel düzenlemeleri içerir.
  Widget sabit bir konumda (sayfanın sağ alt köşesinde) görünür.
  Renkler miamideyiz.com sitesine uyum sağlayacak şekilde seçilmiştir.
*/

/* Ana widget kapsayıcısı */
#assistantWidget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 360px;
  height: 600px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  font-family: Arial, Helvetica, sans-serif;
}

.assistant-header {
  background-color: #e64a19;
  color: #ffffff;
  padding: 12px;
  font-size: 1.25em;
  text-align: center;
  font-weight: bold;
}

.assistant-avatar-container {
  position: relative;
  width: 100%;
  height: 200px;
  background-color: #f7f7f7;
  display: flex;
  justify-content: center;
  align-items: center;
}

.assistant-avatar-container img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
}

/* Ağız animasyonu için örtü */
#assistantWidget #mouth-overlay {
  position: absolute;
  bottom: 58px; /* avatar resmine göre ayarlandı */
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 8px;
  background: #111111;
  border-radius: 50%;
  opacity: 0.9;
}

/* Konuşma animasyon sınıfı */
#assistantWidget .mouth-talking {
  animation: talk-animation 0.4s infinite ease-in-out;
}

@keyframes talk-animation {
  0% {
    height: 8px;
  }
  50% {
    height: 20px;
  }
  100% {
    height: 8px;
  }
}

#assistantWidget #chat-container {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: #fafafa;
}

#assistantWidget .message {
  margin-bottom: 10px;
  display: flex;
}

#assistantWidget .message.user {
  justify-content: flex-end;
}

#assistantWidget .message.assistant {
  justify-content: flex-start;
}

#assistantWidget .message .bubble {
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 75%;
  font-size: 0.92em;
  line-height: 1.3;
  word-wrap: break-word;
}

#assistantWidget .message.user .bubble {
  background: #bbdefb;
  color: #0d47a1;
}

#assistantWidget .message.assistant .bubble {
  background: #fce4ec;
  color: #ad1457;
}

#assistantWidget #input-area {
  display: flex;
  padding: 10px;
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
}

#assistantWidget #input-area input[type="text"] {
  flex: 1;
  padding: 8px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 0.92em;
}

#assistantWidget #input-area button {
  margin-left: 6px;
  padding: 8px 14px;
  border: none;
  border-radius: 4px;
  color: #ffffff;
  cursor: pointer;
  font-size: 0.9em;
}

#assistantWidget #send-button {
  background: #e91e63;
}

#assistantWidget #send-button:hover {
  background: #c2185b;
}

#assistantWidget #mic-button {
  background: #9c27b0;
}

#assistantWidget #mic-button:hover {
  background: #7b1fa2;
}