body {
  background-color: #0f1115;
}

#chatHeader {
  background-color: #14161b;
}

#messages {
  background-color: #0f1115;
}

.msg-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  align-items: flex-start;
}

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  color: #fff;
}

.msg-content {
  max-width: 70%;
}

.msg-meta {
  font-size: 0.75rem;
  color: #8b8f98;
  margin-bottom: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.msg-bubble {
  background-color: #1c1f26;
  border-radius: 0.9rem;
  padding: 0.5rem 0.85rem;
  word-wrap: break-word;
  white-space: pre-wrap;
  font-size: 0.95rem;
}

.msg-row.own {
  flex-direction: row-reverse;
}

.msg-row.own .msg-meta {
  flex-direction: row-reverse;
}

.msg-row.own .msg-bubble {
  background-color: #2d4a7c;
}

.admin-badge {
  font-size: 0.65rem;
  padding: 0.05rem 0.4rem;
  border-radius: 0.5rem;
  background-color: #5c3d00;
  color: #ffc266;
  font-weight: 600;
}

#onlineSidebar {
  background-color: #14161b;
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.4rem;
}

#messageInput {
  resize: none;
}

#typingIndicator {
  font-style: italic;
}

.system-note {
  text-align: center;
  font-size: 0.8rem;
  color: #6c7280;
  margin: 0.6rem 0;
}
