* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f0f2f5;
}

.chat-container {
  width: 400px;
  height: 600px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 20px;
  background-color: #075e54;
  color: white;
  border-radius: 10px 10px 0 0;
}

.chat-header h1 {
  font-size: 1.5rem;
  text-align: center;
}

.chat-messages {
  flex: 1; /* allows the chat messages to take up the remaining space */
  padding: 20px;
  overflow-y: auto; /* enables scrolling */
}

.message {
  margin-bottom: 15px;
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 15px;
  word-wrap: break-word;
}

.bot-message {
  background-color: #e9ecef;
  align-self: flex-start;
  border-radius: 15px 15px 15px 0;
}
/* .user-message dynamically added in javascript */
.user-message {
  background-color: #075e54;
  color: white;
  margin-left: auto;
  border-radius: 15px 15px 0 15px;
}

.chat-input {
  padding: 20px;
  display: flex;
  gap: 10px;
  border-top: 1px solid #e9ecef;
}

#user-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #e9ecef;
  border-radius: 5px;
  outline: none;
}

#send-button {
  padding: 10px 20px;
  background-color: #075e54;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#send-button:hover {
  background-color: #128c7e;
}



















.typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #888;
  animation: bounce 1.2s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40%           { transform: translateY(-6px); }
}


.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-avatar {
  font-size: 28px;
}

.header-info h1 {
  margin: 0;
  font-size: 18px;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #aaa;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3db97a;
  display: inline-block;
}