/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

#chatbot-chatgpt {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.header {
  background-color: #4f4f4f;
  color: white;
  padding: 10px;
  font-size: 16px;
  font-weight: bold;
}
.chat-box {
  padding: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  background-color: #ffffff;
}
.chat-message {
  display: flex;
  justify-content: flex-start;
}
.chat-message.bot {
  justify-content: flex-end;
}
.chat-message.user {
  justify-content: flex-start;
}
.chat-message .message {
  max-width: 80%;
  padding: 10px;
  border-radius: 5px;
  font-size: 14px;
  line-height: 1.4;
}
.chat-message.user .message {
  background-color: #343a40;
  color: white;
  align-self: flex-start;
  border-radius: 10px 10px 10px 0px !important;
}
.chat-message.bot .message {
  background-color: #e1dede;
  color: #333;
  align-self: flex-end;
  border-radius: 10px 10px 0px 10px !important;
}
.input-box {
  display: flex;
  padding: 10px;
  margin-bottom: -10px;
  border-top: 1px solid #ddd;
}
.input-box input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 5px;
  margin-right: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 0px 0px 0px 0px !important;
  font-size: 14px;
}
.input-box button {
  padding: 10px 15px;
  border: none;
  background-color: #4f4f4f;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 0 0 0 7px !important;
}
.chatbot_logo{
  height: 35px;
}
.chatbot_title{
  color:#ede458;
}
#loader {
  display: none;
  border: 2px solid #f3f3f3; /* Light grey */
  border-top: 2px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 12px;
  height: 12px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}