* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(to right, #f5f7fa, #c3cfe2);
}

.chat-container {
  display: flex;
  max-width: 1200px;
  margin: 0px auto;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  height: 100vh;
}

.chat-users {
  width: 30%;
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 20px;
  overflow-y: auto;
  display: none;
}

.chat-users h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

.user {
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  background-color: #34495e;
  cursor: pointer;
  transition: background 0.3s;
}

.user:hover {
  background-color: #3d566e;
}

.chat-window {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px;
  overflow: auto;
  position: relative;
}

.chat-header {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 20px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding-right: 10px;
  height: 91%;
  display: flex;
  flex-direction: column;
}

.message {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.5;
}

.message.received {
  background-color: #ecf0f1;
  align-self: flex-start;
  border-top-left-radius: 4px;
}

.message.sent {
  background-color: #afdfff;
  color: white;
  align-self: flex-end;
  border-top-right-radius: 4px;
  margin-left: auto;
}

.chat-input {
  display: flex;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  /* position: fixed; */
  /* bottom: 0; */
  width: 100%;
  max-width: 1200px;
  background: white;
  padding: 20px;
  box-sizing: border-box;
}

.chat-input textarea {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  resize: none;
  font-size: 16px;
}

.chat-input button {
  margin-left: 10px;
  padding: 12px 24px;
  border: none;
  background-color: #337dff;
  color: white;
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

.chat-input button:hover {
  background-color: #1f618d;
}

.t-loading__parent {
  position: relative;
  height: 100% !important;
}

.message-container {
        display: flex;
        margin-bottom: 16px;
        max-width: 100%;
    }

    .message-container.received {
        align-self: flex-start;
    }

    .message-container.sent {
        align-self: flex-end;
        flex-direction: row-reverse;
    }

    .avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #ddd;
        flex-shrink: 0;
        margin: 0 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        color: white;
    }

    .message-container.received .avatar {
        background-color: #2c3e50;
    }

    .message-container.sent .avatar {
        background-color: #337dff;
    }

    .message {
        max-width: 70%;
        padding: 12px 16px;
        border-radius: 20px;
        font-size: 16px;
        line-height: 1.5;
    }

    .message.received {
        background-color: #ecf0f1;
        border-top-left-radius: 4px;
    }

    .message.sent {
        background-color: #afdfff;
        color: white;
        border-top-right-radius: 4px;
    }