body {
  background-color: #1e1e1e;
}
.main-content {
  position: relative;
  padding: 20px;
}

.modal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  width: 80%;
  max-width: 400px;
}

.hidden {
  display: none;
}

.chat-box {
  text-align: left;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  height: 80%;
  background: #a09a9a;
  border-radius: 8px;
  overflow: hidden;
  z-index: 900;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.chat-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: #e9ecef;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  max-width: 70%;
  padding: 10px;
  border-radius: 12px;
  word-wrap: break-word;
  font-size: 14px;
}

.message.user {
  align-self: flex-end;
  background: #007bff;
  color: white;
}

.message.other {
  align-self: flex-start;
  background: #f1f1f1;
  color: #333;
}

.chat-input {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #ddd;
  padding: 10px;
  background: white;
}

textarea {
  width: 100%;
  height: 60px;
  margin-bottom: 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  padding: 10px;
  resize: none;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  background-color: #6ea4f5;
  color: white;
  cursor: pointer;
}

.btn:hover {
  background-color: #265df2;
}

.chat-controls {
  display: flex;
  justify-content: space-between; /* Distributes items with space between */
  align-items: center;
  gap: 5px;
}

.chat-controls .btn {
  flex-shrink: 0; /* Prevent buttons from shrinking */
}

.chat-controls textarea {
  flex: 1; /* Allows textarea to take up remaining space */
}

.chat-controls-buttons {
  display: flex;
  gap: 5px;
}
