/* ===============================
   PATH UNIVERSITY CHATBOT STYLE
   =============================== */

#kugba-chat-wrapper {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  font-family: "Inter", Arial, sans-serif;
}

/* Floating Button */
#kugba-chat-button {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #0f4d2c, #145a32);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}

#kugba-chat-button:hover {
  transform: scale(1.08);
}

/* Chat Box */
#kugba-chat-box {
  width: 340px;
  max-height: 520px;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.35s ease forwards;
}

/* Header */
#kugba-chat-header {
  background: linear-gradient(135deg, #0f4d2c, #145a32);
  color: #fff;
  padding: 14px 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#kugba-close-btn {
  cursor: pointer;
  font-size: 14px;
}

/* Messages Area */
#kugba-chat-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  background: #f5f7fa;
}

/* Message bubbles */
.kugba-chat-message {
  padding: 10px 14px;
  margin-bottom: 10px;
  border-radius: 16px;
  max-width: 80%;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.kugba-chat-message.user {
  background: #f2c200;
  color: #000;
  align-self: flex-end;
  margin-left: auto;
}

.kugba-chat-message.bot {
  background: #e4e7ec;
  color: #222;
  align-self: flex-start;
}

/* Typing indicator */
#kugba-typing {
  font-size: 13px;
  color: #888;
  padding: 0 12px 8px 12px;
}

/* Input area */
#kugba-chat-input {
  display: flex;
  padding: 10px;
  border-top: 1px solid #eee;
  background: #fff;
}

#kugba-chat-input input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 20px;
  border: 1px solid #ddd;
  outline: none;
  font-size: 14px;
}

#kugba-chat-input input:focus {
  border-color: #0f4d2c;
}

#kugba-chat-send-btn {
  margin-left: 8px;
  background: #f2c200;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  position: relative;
}

#kugba-chat-send-btn::after {
  content: "➤";
  position: absolute;
  top: 8px;
  left: 11px;
  font-size: 16px;
}

/* Footer */
.kugba-chat-footer {
  font-size: 11px;
  text-align: center;
  padding: 6px;
  color: #999;
  background: #fafafa;
}

/* Welcome Popup */
.kugba-welcome-popup {
  position: fixed;
  bottom: 95px;
  right: 25px;
  background: #0f4d2c;
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  animation: fadeInUp 0.5s ease forwards;
}

/* "We Are Here" badge */
.kugba-here-badge {
  position: fixed;
  bottom: 95px;
  right: 25px;
  background: #f2c200;
  color: #000;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Animation */
@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Mobile */
@media (max-width: 480px) {
  #kugba-chat-box {
    width: 95vw;
    right: 2.5vw;
  }

  #kugba-chat-wrapper {
    right: 10px;
    bottom: 15px;
  }
}