#chatbot-icon {
  position: fixed;
  z-index: 9999;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color:  #436ecc;
  color: white;
  font-size: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
  border:2px solid  #dfb459;
}

#chatbot-icon:hover {
  content:"Click on me to chat";
  background-color: #032775;
  transform: scale(1.1);
}


#chatbot-icon::before {
  content: "";
  position: absolute;
  width: 64px;
  height: 64px;
  background: rgba(249, 204, 72, 0.5);
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
  z-index: -1;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}
/* Chatbot Container */
#chatbot-container {
  position: fixed;
  z-index: 9999;
  bottom: 80px;
  right: 20px;
  width: 350px;
  height: 400px;
  background-color: #e0d5d5f3;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

/* Hide Chatbot Initially */
.hidden {
  display: none !important;
}

/* Chatbot Header */
#chatbot-header {
  background-color: #2f68d3;
  color: white;
  padding: 15px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
}

#close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

/* Chatbot Body */
#chatbot-body {
  flex: 1 1 auto;
  padding: 15px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Chatbot Messages */
#chatbot-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  padding-right: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Message Styles */
.message {
  margin: 10px 0;
  padding: 10px 15px;
  border-radius: 15px;
  max-width: 80%;
  word-wrap: break-word;
}

.message.user {
  background-color: #032775;
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 5px;
}

.message.bot {
  background-color: #f0f0f0;
  color: #333;
  margin-right: auto;
  border-bottom-left-radius: 5px;
}

/* Feedback Container */
.feedback-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 0.9em;
  color: #666;
}

.feedback-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2em;
  padding: 5px;
  transition: transform 0.2s;
}

.feedback-btn:hover {
  transform: scale(1.2);
}

.feedback-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Typing Indicator */
.message.bot.typing {
  background-color: #f0f0f0;
  color: #666;
  font-style: italic;
}

/* Input Container */
#chatbot-input-container {
  display: flex;
  gap: 10px;
  padding: 15px;
  background-color: #fff;
  border-top: 1px solid #eee;
}

#chatbot-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 20px;
  outline: none;
  transition: border-color 0.3s;
}

#chatbot-input:focus {
  border-color: #032775;
}

#send-btn {
  background-color: #032775;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#send-btn:hover {
  background-color: #3b5998;
}

#send-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Scrollbar Styles */
#chatbot-body::-webkit-scrollbar {
  width: 6px;
}

#chatbot-body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

#chatbot-body::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

#chatbot-body::-webkit-scrollbar-thumb:hover {
  background: #555;
}

#chatbot-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 75px;
    right: 50%;
    transform: translateX(50%);
    background-color: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10000;
}