.chat-container {
  width: 50vw;
  height: 90vh;
  display: flex;
  flex-direction: column;
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow-y: auto;
  background-color: #f8f9fa;
}

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

.chat-header img {
  width: 120px;
}

.chat-header span {
  font-weight: bold;
  font-size: 30px;
}

.chat-subtitle {
  width: 100%;
}

.chat-subtitle img {
  width: 100%;
  object-fit: fill;
}

.chat-body {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  display: flex;
  gap: 10px;
  background: white;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.message img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.message-content {
  display: flex;
  flex-direction: column;
}

.message-name {
  font-weight: bold;
  font-size: 14px;
}

.message-text {
  font-size: 13px;
  color: #333;
}

.chat-footer {
  padding: 10px;
  background: #e9ecef;
  display: flex;
  flex-direction: column;
  border-top: 1px solid #ccc;
}

.message-input-container {
  display: flex;
  gap: 5px;
}

.message-input {
  flex: 1;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

.send-button {
  padding: 5px 10px;
  border: none;
  background: #007bff;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

.send-button:hover {
  background: #0056b3;
}

.footer-message {
  font-size: 12px;
  text-align: center;
  color: #555;
  margin-top: 5px;
}

.loader {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #636c72;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@media (max-width:961px) {
  .chat-container {
    width: 100vw;
    height: 100vh;
    border: none;
  }
}