/* ========================= */
/* CHATBOT MODAL */
/* ========================= */

#chatbot-modal {
  display: none;
  position: fixed;
  z-index: 99999; /* 🔥 paling penting */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);

  justify-content: center;
  align-items: center;
}

/* BOX */
.modal-content {
  background: white;
  width: 95%;
  max-width: 400px;
  height: 85vh;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* CLOSE BUTTON */
.close-btn {
  font-size: 28px;
  color: #999;
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
}

.close-btn:hover {
  color: black;
}

/* ========================= */
/* CHAT */
/* ========================= */

.chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-header {
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}

/* CHAT AREA */
.chat-box {
  flex: 1;
  overflow-y: auto;
  padding-right: 5px;
}

/* MESSAGE */
.chat-message {
  display: flex;
  align-items: flex-start;
  margin: 6px 0;
}

/* BOT */
.bot-message {
  background: #f1f1f1;
  padding: 8px;
  border-radius: 10px;
  max-width: 80%;
}

/* USER */
.user-message {
  background: #7d048b;
  color: white;
  padding: 8px;
  border-radius: 10px;
  margin-left: auto;
  max-width: 80%;
}

/* TEXT */
.message-text {
  font-size: 13px;
}

/* INPUT */
.chat-input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-top: 10px;
  font-size: 14px;
}

/* BUTTON */
.send-btn {
  background: #820976;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 8px;
  margin-top: 8px;
  cursor: pointer;
  font-size: 14px;
}

.send-btn:hover {
  background: #af42b3;
}

/* PROFILE */
.profile-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 8px;
}

.bot-img {
  background-image: url('../images/dokter1.jpeg');
  background-size: cover;
}

/* ========================= */
/* MOBILE FIX */
/* ========================= */

@media (max-width: 576px) {
  .modal-content {
    width: 95%;
    height: 90vh;
    border-radius: 12px;
  }

  .chat-header {
    font-size: 13px;
  }

  .message-text {
    font-size: 12px;
  }
}