/* Container tombol + gambar */
#alisaChatContainer {
  position: fixed;
  bottom: 40px;
  right: 40px;
  text-align: center;
  z-index: 9999;
}

/* Gambar di atas tombol (tidak bulat dan center) */
#alisaAvatar {
  width: 80px;
  height: auto;
  display: block;
  margin: 0 auto 6px auto;
}

/* Tombol Tanya Alisa */
#chatButton {
  position: fixed;
  bottom: 15px;
  right: 15px;
  background-color: #0f766e;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 6px 22px;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  z-index: 9999;
}

#chatButton:hover {
  background-color: #74797e;
}

/* Halaman chat full screen */
#chatContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: none;
  flex-direction: column;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#chatHeader {
  background-color: #0f766e;
  color: white;
  padding: 15px;
  text-align: center;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chatHeader button {
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
}

#chatMessages {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  background: #f8f9fa;
}

.message {
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 15px;
  max-width: 80%;
}

.user {
  background: #0f766e;
  color: white;
  align-self: flex-end;
  margin-left: auto;
}

.bot {
  background: #e9ecef;
  align-self: flex-start;
}

#chatInputContainer {
  display: flex;
  padding: 10px;
  background: #fff;
  border-top: 1px solid #ddd;
}

#chatInput {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 10px 15px;
  outline: none;
}

#sendBtn {
  margin-left: 10px;
  background: #0f766e;
  border: none;
  color: white;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  font-size: 18px;
}

/* 🔹 Responsif untuk mobile */
@media (max-width: 576px) {
  #alisaChatContainer {
    bottom: 15px;
    right: 25px;
  }

  #alisaAvatar {
    width: 70px;
    margin-bottom: 15px;
  }

  #chatButton {
    padding: 3px 12px;
    font-size: 12px;
    border-radius: 20px;
    bottom: 5px;
    right: 5px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    gap: 5px;
  }

  #chatButton i {
    font-size: 16px;
  }
}
