body {
  margin: 0;
  background-color: #121212;
  color: #fff;
  font-family: Arial, sans-serif;
  display: flex;
  height: 100vh;
}

/* Lista de usuários */
.contatos {
  width: 280px;
  background-color: #1e1e1e;
  border-right: 1px solid #333;
  padding: 10px;
  overflow-y: auto;
}

.contato {
  display: flex;
  align-items: center;
  padding: 10px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}

.contato:hover {
  background-color: #2a2a2a;
}

.contato img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.contato strong {
  color: #ffcc00;
  font-size: 15px;
}

/* Janela de conversa */
.chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #181818;
  position: relative;
}

.chat-topo {
  display: flex;
  align-items: center;
  padding: 15px;
  background-color: #222;
  border-bottom: 1px solid #333;
}

.chat-topo .foto {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.chat-topo strong {
  font-size: 16px;
  color: #ffcc00;
}

.chat-mensagens {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Balões */
.mensagem {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 20px;
  word-wrap: break-word;
  line-height: 1.4;
  font-size: 14px;
}

.enviada {
  align-self: flex-end;
  background-color: #ffcc00;
  color: #000;
  border-bottom-right-radius: 4px;
}

.recebida {
  align-self: flex-start;
  background-color: #2a2a2a;
  border-bottom-left-radius: 4px;
}

/* Formulário */
.chat-form {
  display: flex;
  padding: 10px;
  border-top: 1px solid #333;
  background-color: #1e1e1e;
}

.chat-form input {
  flex: 1;
  padding: 10px;
  border-radius: 20px;
  border: none;
  outline: none;
  background-color: #2a2a2a;
  color: #fff;
}

.chat-form button {
  background: none;
  border: none;
  color: #ffcc00;
  font-size: 20px;
  margin-left: 10px;
  cursor: pointer;
}
