/* Bubble tombol chat */
#chat-bubble-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #2563eb;
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  z-index: 9999;
  transition: transform 0.2s ease;
}

#chat-bubble-btn:hover {
  transform: scale(1.08);
}

/* Jendela chat */
#chat-window {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 340px;
  height: 460px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  z-index: 9999;
}

#chat-window.open {
  display: flex;
}

/* Header */
#chat-header {
  background-color: #2563eb;
  color: white;
  padding: 14px 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chat-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

/* Area pesan */
#chat-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  background: #f9fafb;
}

.chat-msg {
  margin: 6px 0;
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.chat-msg-user {
  background-color: #2563eb;
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.chat-msg-bot {
  background-color: #e5e7eb;
  color: #111827;
  margin-right: auto;
  border-bottom-left-radius: 4px;
}

.chat-msg-typing {
  color: #9ca3af;
  font-style: italic;
  font-size: 13px;
}

/* Input area */
#chat-input-area {
  display: flex;
  border-top: 1px solid #e5e7eb;
  padding: 8px;
  gap: 8px;
}

#chat-input {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  outline: none;
}

#chat-send-btn {
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
}

#chat-send-btn:hover {
  background-color: #1d4ed8;
}
