body {
  button {
margin-left: 10px;
background-color: #4e73df;
color: #ffffff;
border: none;
border-radius: 20px;
padding: 0.75rem 1.25rem;
font-size: 1rem;
cursor: pointer;
transition: background 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
}

button:hover {
background-color: #3758d4;
}

}

#main-container {
  display: flex;
width: 100%;
max-width: 1200px;
height: 90vh;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 0 15px rgba(0,0,0,0.5);
background-color: #1e1e1e;
}

/* Chat Section */
#chat-container {
flex: 3;
display: flex;
flex-direction: column;
border-right: 1px solid #333;
background-color: #1e1e1e;
}

#chat-header {
  background-color: #2d2d2d;
color: #ffffff;
text-align: center;
padding: 1rem;
font-size: 1.25rem;
font-weight: bold;
border-bottom: 1px solid #333;
display: flex;
justify-content: space-between;
align-items: center;
}

#messages {
  flex: 1;
  list-style: none;
  padding: 1rem;
  overflow-y: auto;
  background-color: #1a1a1a;
}

#messages > li {
  display: flex;
  align-items: flex-end;
  margin-bottom: 1rem;
  max-width: 80%;
}

.avatar {
  width: 35px;
  height: 35px;
  background-color: #4e73df;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-right: 10px;
  flex-shrink: 0;
}

.message-bubble {
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  background-color: #333;
  color: #e0e0e0;
  word-wrap: break-word;
}

.user-message {
  margin-left: auto;
  flex-direction: row-reverse;
}

.user-message .avatar {
  background-color: #1d4ed8;
  margin-right: 0;
  margin-left: 10px;
}

.user-message .message-bubble {
  background-color: #4e73df;
  color: white;
}

#typingIndicator {
  font-style: italic;
  color: #999;
  text-align: center;
  margin: 5px;
  height: 1.5rem;
}

.typing-dots::after {
  content: '...';
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

#form {
  display: flex;
  padding: 0.75rem;
  border-top: 1px solid #333;
  background: #1e1e1e;
}

#input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 20px;
  border: 1px solid #444;
  outline: none;
  font-size: 1rem;
  background-color: #2a2a2a;
  color: white;
}

button {
  margin-left: 10px;
  background-color: #4e73df;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background-color: #3758d4;
}

/* User List Sidebar */
#sidebar {
  flex: 1;
  background-color: #1a1a1a;
  padding: 1rem;
  overflow-y: auto;
  border-left: 1px solid #333;
}

#sidebar h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #ccc;
}

#userList {
  list-style: none;
  padding: 0;
  margin: 0;
}

#userList li {
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  background-color: #2a2a2a;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  cursor: pointer;
  color: #ddd;
  transition: background 0.2s;
}

#userList li:hover {
  background-color: #3a3a3a;
}