/* tambahkan di akhir navbar.css */
.floating-wa {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 9999;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.floating-wa i {
  font-size: 1.5rem;
}
/* di akhir navbar.css (atau file CSS floating-wa kamu) */
.floating-wa:hover {
  background-color: var(--hover-color);
}

/* kalau ingin lebih spesifik saja target ikon-nya */
.floating-wa:hover i {
  color: #fff;
}


/* ===== WA CHAT WIDGET ===== */
.wa-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  z-index: 9999;
}

/* kotak pesan */
.widget-message {
  background:var(--primary-color);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  position: relative;
  max-width: 240px;
  font-size: 0.9rem;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.widget-message p {
  margin: 0;
  line-height: 1.4;
}

/* tombol tutup di pojok */
.widget-message .close-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

/* sembunyikan pesan */
.widget-message.hidden {
  opacity: 0;
  visibility: hidden;
}

/* icon chat bulat */
.chat-toggle {
  width: 56px;
  height: 56px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.chat-toggle:hover {
  background: var(--hover-color);
  color: #fff;
}
