.tab-btn {
  color: #000;
  background: none;
  border: none; 
  padding: 0; 
  font-size: 14px; 
  cursor: pointer; 
  transition: color 0.3s ease; 
}

.tab-btn:hover {
  color: #20345C;
  background-color: transparent;
}

.tab-btn.active {
  color: #20345C; 
}
	
/* ===============================
   iOS 26 LIQUID GLASS – BUBBLE
   =============================== */

#chat-box {
  transform-origin: bottom right;
  opacity: 0;
  transform: scale(0.12);
  pointer-events: none;

  backdrop-filter: blur(0px) saturate(140%);
  -webkit-backdrop-filter: blur(0px) saturate(140%);
  filter: blur(0px);

  will-change: transform, opacity, filter;
}


/* === OPEN : seperti meniup gelembung === */
#chat-box.show {
  animation: bubble-bluk-open 0.38s cubic-bezier(.22,.61,.36,1) forwards;
  pointer-events: auto;
}


/* === CLOSE : gelembung disedot balik === */
#chat-box.hide {
  animation: bubble-bluk-close 0.22s cubic-bezier(.4,0,.6,1) forwards;
  pointer-events: none;
}


/* ===============================
   KEYFRAMES – LIQUID GLASS
   =============================== */
@keyframes bubble-bluk-open {
  0% {
    transform: scale(0.2);
    opacity: 0;
    border-radius: 50%;
    filter: blur(10px);
    backdrop-filter: blur(8px);
  }

  70% {
    transform: scale(1.04);
    opacity: 1;
    filter: blur(2px);
  }

  100% {
    transform: scale(1);
    opacity: 1;
    border-radius: 20px;
    filter: blur(0);
    backdrop-filter: blur(0);
  }
}


@keyframes bubble-bluk-close {
  0% {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
  }

  100% {
    transform: scale(0.2);
    opacity: 0;
    filter: blur(8px);
    border-radius: 50%;
  }
}

#chat-bubble:active {
  transform: scale(0.9);
}


/* ===============================
BUBBLE BUTTON
=============================== */
#chat-bubble {
  transform-origin: center;
  transition:
    transform 0.25s cubic-bezier(.34,1.56,.64,1),
    opacity 0.2s ease;
}

#chat-bubble.bubble-hidden {
  transform: scale(0.3);
  opacity: 0;
  pointer-events: none;
}

	
	
/* Background solid untuk tab "Chat" */
#chat-box.chat-active {
    background: #fff !important;
}

#chat-header.chat-active {
  background: #20345C !important; 
}
#chat-header img {
  max-height: 40px; 
  object-fit: contain;
}
/* Tambahkan garis pembatas dotted antara dropdown FAQ */
#qna-tab ul li {
  border-bottom: 1px dotted #ddd; 
  padding-bottom: 10px;
  margin-bottom: 10px;
}

/* Hapus garis pembatas pada item terakhir */
#qna-tab ul li:last-child {
  border-bottom: none;
}		
#backToChatBtn:hover {
  background-color: #e65c00 !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}	


/* Animasi Rotasi ke Arah Biasa */
@keyframes rotate-icon {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Animasi Rotasi ke Arah Berlawanan */
@keyframes reverse-rotate-icon {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

/* Efek Fade In */
.fade {
  animation: fade-in 0.3s ease-in-out;
}

/* Animasi Fade In */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}	
/* Tambahkan animasi rotasi hanya untuk ikon */
.tab-btn img {
  transition: transform 0.3s ease-in-out;
}

.tab-btn:hover img {
  transform: translateY(-5px);
}

/* Animasi khusus untuk ikon tab yang aktif */
.tab-btn.active img {
  animation: bounce-rotate 3s ease-in-out infinite;
}

/* Keyframes untuk efek naik, rotasi cepat di atas, dan turun */
@keyframes bounce-rotate {
  0% {
    transform: translateY(0) rotate(0deg); 
  }
  10% {
    transform: translateY(-10px) rotate(0deg); 
  }
  20% {
    transform: translateY(-10px) rotate(360deg);
  }
  30% {
    transform: translateY(-10px) rotate(360deg);
  }
  40% {
    transform: translateY(0) rotate(360deg);
  }
  100% {
    transform: translateY(0) rotate(360deg); 
  }
}
#emojiPicker span {
  margin: 5px;
  display: inline-block;
  cursor: pointer;
}

#emojiPicker span:hover {
  transform: scale(1.2);
  transition: transform 0.2s ease-in-out;
}
#emojiButton {
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; 
  height: 40px;
  border-radius: 50%; 
}

#emojiButton img {
  width: 24px;
  height: 24px;
  pointer-events: none;
}
.cs-avatars {
  display: flex;
  align-items: center;
  margin-left: 40%;
}

.cs-avatars img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid #c7aa89;
  margin-left: -8px;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.cs-avatars img:first-child {
  margin-left: 0;
}

.cs-avatars img:hover {
  transform: scale(1.1);
  z-index: 2;
}
	
input#inputName {
    margin-bottom: 0px !important;
}
input#inputInstansi {
    margin-bottom: 0px !important;
}
input#inputKota {
    margin-bottom: 0px !important;
}
input#inputPesan {
    margin-bottom: 0px !important;
}
	
#chat-box:not(.show):not(.hide) {
  transition: none !important;
  transform: scale(0) !important;
  opacity: 0 !important;
}
.bubble-chat {
  cursor: pointer !important;
}
