.chat-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  max-height: 80vh; /* Responsive max height */
  border-radius: 16px;
  overflow-y: auto; /* Allow scrolling if content overflows */
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  background: white;
  z-index: 9999;
}


.chat-header {
  background: #114480;
  color: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.chat-header-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

/* .chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #f9f9f9;
} */

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
}


.aina-message {
  background-color: #e8f5e9;
  color: #1b5e20;
  padding: 8px 12px;
  border-radius: 12px;
  margin: 6px 0;
  max-width: 80%;
  align-self: flex-start;
  font-weight: 500;
}

.user-message {
  background-color: #dff0ff;
  color: #003366;
  padding: 8px 12px;
  border-radius: 12px;
  margin: 6px 0;
  max-width: 80%;
  align-self: flex-end;
  text-align: right;
  font-weight: 500;
}


.quick-replies {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: #eef3f9;
  flex-wrap: wrap;
  border-top: 1px solid #ddd;
}

.quick-reply-btn {
  background-color: #114480;
  color: white;
  border: none;
  border-radius: 16px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.quick-reply-btn:hover {
  background-color: #092c5c;
}

.chat-input-container {
  display: flex;
  border-top: 1px solid #ddd;
}

.chat-input {
  flex: 1;
  border: none;
  padding: 12px;
  font-size: 14px;
  outline: none;
}

.send-button {
  background: #114480;
  color: white;
  border: none;
  padding: 0 16px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.send-button:hover {
  background: #092c5c;
}

.chat-open-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #114480;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 30px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  z-index: 9998;
}
