/* --- CHATBOT BUTTON --- */
#chatbot-toggle {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background-color: #ff7a00; /* oranye perusahaan */
  color: white;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  z-index: 999;
}

#chatbot-toggle:hover {
  background-color: #ff8c1a;
  transform: scale(1.05);
}

/* --- CHATBOT BOX --- */
#chatbot-box {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 320px;
  height: 420px;
  display: none;
  flex-direction: column;
  border-radius: 12px;
  background: #fdfdfd;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  overflow: hidden;
  font-family: "Segoe UI", sans-serif;
  z-index: 1000;
}

/* --- HEADER --- */
#chatbot-box::before {
  content: "Chat CS";
  display: block;
  background: #ff7a00;
  color: white;
  text-align: center;
  font-weight: bold;
  padding: 12px;
  font-size: 15px;
  letter-spacing: 0.5px;
}

/* --- MESSAGES AREA --- */
#chatbot-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
}

/* --- MESSAGE BUBBLES --- */
.message {
  margin: 8px 0;
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 80%;
  line-height: 1.4;
  font-size: 14px;
  word-wrap: break-word;
  animation-duration: 0.4s;
  animation-fill-mode: both;
}

/* User messages slide in from right */
.message.user {
  background-color: #ffefe0;
  color: #333;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  animation-name: slideInRight;
}

/* Bot messages slide in from left */
.message.bot {
  background-color: #ffffff;
  color: #333;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  border: 1px solid #e0e0e0;
  animation-name: slideInLeft;
}

/* --- INPUT AREA --- */
#chatbot-input {
  display: flex;
  border-top: 1px solid #ddd;
  background: #fff;
}

#chatbot-question {
  flex: 1;
  border: none;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}

#chatbot-send {
  background: #ff7a00;
  color: white;
  border: none;
  padding: 0 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#chatbot-send:hover {
  background: #ff8c1a;
}

/* --- SCROLLBAR --- */
#chatbot-messages::-webkit-scrollbar {
  width: 6px;
}
#chatbot-messages::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

/* --- ANIMATIONS --- */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

#chatbot-toggle {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background-color: transparent; /* tidak pakai warna, biar gambar full */
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
  z-index: 999;
  padding: 0;
}

/* Gaya gambar di dalam tombol */
#chatbot-toggle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover; /* biar tetap proporsional */
  background: #fff;
}

/* Efek hover */
#chatbot-toggle:hover {
  transform: scale(1.05);
}

/* #chatbot-toggle:hover img {
  box-shadow: 0 0 10px rgba(255, 122, 0, 0.6);
}*/