
#chatbot-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #007bff;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1000;
}

#chatbot-icon .chat-icon {
  font-size: 24px;
}

#chatbot-panel {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 350px;
  height: 450px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  z-index: 999;
}

.hidden {
  display: none !important;
}

.chat-header {
  background-color: #007bff;
  color: white;
  padding: 10px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  cursor: pointer;
  font-size: 20px;
  color: white !important; /* Change the text color (the '❌' character) */
}

.chat-body {
  flex-grow: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-message {
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 85%;
  word-wrap: break-word;
  text-align: justify;
  position: relative;
}

/* User Message Horn */
.user-message {
  background-color: #e2f0ff;
  align-self: flex-end;
  border-bottom-right-radius: 0; /* Remove rounded corner where the horn will be */
}

/* AI Message Horn */
.ai-message {
  background-color: #f1f0f0;
  align-self: flex-start;
  border-bottom-left-radius: 0; /* Remove rounded corner where the horn will be */
}

.chat-footer {
  padding: 10px;
  border-top: 1px solid #ddd;
  display: flex;
}

#user-input {
  flex-grow: 1;
  padding: 8px;
  border-radius: 20px;
  border: 1px solid #ddd;
  outline: none;
}

.chat-footer button {
  padding: 8px 15px;
  margin-left: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
}

.latency-label {
    font-size: 10px;
    color: #888;
    margin-top: 5px;
}