:root {
  --vex-color: #C10841;
  --vex-hover: #FF2B6C;
  --user-color: #182E5F;
  --user-hover: #0F3995;
  --bg-color: #121212;
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: var(--bg-color);
  color: #fff;
}

.chat-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: auto;
  height: 100vh;
  padding: 1rem;
  box-sizing: border-box;



}
.chat-header {
  backgrougnd: red;
  display: flex;
  align-items: center;
  
  gap: 1rem;
  padding: 1rem;
  flex-direction: row;
  border-bottom: 1px solid #333;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.user-info {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.user-name {
  margin: 0;
  font-size: 1.2rem;
}

.status-indicator {
  width: 10px;
  height: 10px;
  background: #08A32D;
  border-radius: 50%;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

li.msg {
  display: flex;
  flex-direction: column;
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  max-width: 70%;
  color: white;
  font-size: 0.95rem;
  position: relative;
  animation: scale .3s ease-in-out;
  word-wrap: break-word;
  white-space: pre-wrap;
}

li.msg.vex {
  background: var(--vex-color);
  align-self: flex-start;
}

li.msg.vex:hover {
  background: var(--vex-hover);
}

li.msg.user {
  background: var(--user-color);
  align-self: flex-end;
}

li.msg.user:hover {
  background: var(--user-hover);
}

span.data {
  font-size: 0.7rem;
  opacity: 0.7;
  margin-top: 0.2rem;
}

.typing-indicator {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  color: #bbb;
  display: none;
}

.typing-indicator.show {
  display: block;
  animation: typingOn 0.4s forwards;
}

.typing-indicator.hide {
  animation: typingOff 0.4s forwards;
  display: none;
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #1e1e1e;
  padding: 0.5rem;
  border-radius: 2rem;
  position: sticky;
  bottom: 1rem;
  width: 100%;
  color: white;
  padding: 1rem 2rem;
}

.chat-input input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
  color: white;
}

.chat-input input::placeholder {
  color: #aaa;
}

.icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}
