#open-chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #007bff;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

  /* New styles for background image */
  background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="5" y="5" width="14" height="10" rx="2" fill="%23E0E0E0" /><rect x="7" y="7" width="10" height="6" rx="1" fill="%23424242"/><circle cx="10" cy="10" r="1.5" fill="%2340C4FF"/><circle cx="14" cy="10" r="1.5" fill="%2340C4FF"/><circle cx="10.2" cy="9.8" r="0.5" fill="%23E3F2FD"/><circle cx="14.2" cy="9.8" r="0.5" fill="%23E3F2FD"/><line x1="12" y1="5" x2="12" y2="3" stroke="%239E9E9E" stroke-width="1.5" stroke-linecap="round"/><circle cx="12" cy="2" r="1" fill="%23FF4081"/><rect x="8" y="15" width="8" height="5" rx="1" fill="%23BDBDBD"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40px 40px; /* Increased size */
}

#chatbot-container {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 350px;
  height: 500px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  font-family: sans-serif;
  overflow: hidden;
}

#chatbot-header {
  background-color: #007bff;
  color: white;
  padding: 15px;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#close-chatbot {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

#chatbot-messages {
  flex-grow: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chatbot-message {
  padding: 10px 15px;
  border-radius: 18px;
  max-width: 80%;
  line-height: 1.4;
}

.user-message {
  background-color: #007bff;
  color: white;
  align-self: flex-end;
}

.bot-message {
  background-color: #f1f1f1;
  color: #333;
  align-self: flex-start;
}

#chatbot-input-container {
  display: flex;
  padding: 10px;
  border-top: 1px solid #ddd;
}

#chatbot-input {
  flex-grow: 1;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 10px 15px;
  font-size: 14px;
}

#chatbot-send {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 10px 15px;
  margin-left: 10px;
  cursor: pointer;
}

#chatbot-send:hover {
    background-color: #0056b3;
}
