/* General Styles */
body {
  font-family: Arial, sans-serif;
}

/* Chat Icon */
#chat-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: red;
  color: white;
  border-radius: 50%;
  padding: 15px;
  font-size: 24px;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Chat Box */
#chat-box {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 300px;
  background-color: black;
  color: white;
  border: 2px solid red;
  border-radius: 10px;
  display: none; /* Hidden by default */
  flex-direction: column;
  z-index: 1000;
}

/* Chat Header */
#chat-header {
  background-color: red;
  color: white;
  padding: 10px;
  font-weight: bold;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

/* Chat Messages */
#chat-messages {
  padding: 10px;
  height: 250px;
  overflow-y: auto;
  background-color: rgb(26, 23, 23);
}

/* Message Bubbles */
.message {
  margin: 5px 0;
  padding: 8px 10px;
  border-radius: 10px;
  max-width: 80%;
  word-wrap: break-word;
}

/* Bot messages (from) - left side */
.message.from {
  background-color: #222;
  color: white;
  margin-right: auto; /* Aligns to left */
  border-bottom-left-radius: 0; /* Makes it point left */
}

/* User messages (to) - right side */
.message.to {
  background-color: red;
  color: white;
  margin-left: auto; /* Aligns to right */
  border-bottom-right-radius: 0; /* Makes it point right */
}

/* Default questions buttons */
.question-btn {
  background-color: #eee;
  border: 1px solid #ccc;
  padding: 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s;
  margin-right: auto; /* Align buttons to left */
  width: 90%; /* Make buttons take most of the width */
  text-align: left; /* Align text to left within buttons */
}

/* Chat Input */
#chat-input {
  display: flex;
  border-top: 1px solid #444;
  padding: 8px;
  background-color: black;
}

#chatTextInput {
  flex: 1;
  padding: 8px;
  border: 1px solid red;
  border-radius: 5px;
  background-color: white;
  color: black;
}

#chatTextInput::placeholder {
  color: #999;
}

#chat-input button {
  margin-left: 5px;
  padding: 8px 12px;
  border: none;
  background-color: red;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

#default-questions {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 5px;
}

.question-btn {
  background-color: transparent;
  border: 0;
  /* padding: 8px; */
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s;
  color: #dc3545;
}

.question-btn:hover {
  background-color: #ddd;
}

.from {
  background-color: #f1f1f1;
  align-self: flex-start;
}

.to {
  background-color: #dc3545;
  color: #fff;
  align-self: flex-end;
}