.chatbot-toggler {
  position: fixed;
  bottom: 30px;
  right: 30px;
  outline: none;
  border: none;
  height: 60px;
  width: 60px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: all 0.3s ease;
}
.chatbot-toggler:hover {
  background: var(--secondary);
  transform: scale(1.1);
}
.chatbot {
  position: fixed;
  right: 35px;
  bottom: 100px;
  width: 350px;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s ease;
}
.chatbot.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.chatbot-header {
  background: var(--primary);
  color: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chatbot-header h3 {
  color: #fff;
  font-size: 1.2rem;
  margin: 0;
}
.close-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}
.chatbox {
  height: 350px;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
/* Scrollbar settings */
.chatbox::-webkit-scrollbar {
  width: 6px;
}
.chatbox::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.chatbox::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}
.chat {
  display: flex;
  margin-bottom: 15px;
}
.chat p {
  padding: 12px 16px;
  border-radius: 10px;
  max-width: 85%;
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0;
}
.chat-incoming p {
  background: #f1f5f9;
  color: var(--text-main);
  border-bottom-left-radius: 0;
}
.chat-outgoing {
  justify-content: flex-end;
}
.chat-outgoing p {
  background: var(--secondary);
  color: #fff;
  border-bottom-right-radius: 0;
}
.chat-input-container {
  display: flex;
  padding: 15px;
  border-top: 1px solid var(--border-color);
  background: #f8fafc;
}
.chat-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px;
  border-radius: 20px;
  background: #fff;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
  font-size: 0.95rem;
}
.chat-send-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  width: 45px;
  border-radius: 50%;
  margin-left: 10px;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.chat-send-btn:hover {
  background: var(--secondary);
}
@media (max-width: 490px) {
  .chatbot {
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    border-radius: 0;
  }
  .chatbox {
    height: 100%;
  }
}
