:root {
  --bg: #111;
  --fg: #eee;
  --accent: #09f;
  --accent2: #4caf50;
  --bubble-me: #1e2a1e;
  --bubble-other: #1e1f2a;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", "Segoe UI", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

#container {
  width: 90%;
  max-width: 900px;
  background: #1a1a1a;
  border-radius: 12px;
  padding: 1.5em;
  box-shadow: 0 0 40px #000;
  display: flex;
  flex-direction: column;
  height: 85vh;
}

#messages {
  flex: 1;
  overflow-y: auto;
  background: #111;
  border-radius: 8px;
  padding: 1em 1.5em;
  margin-bottom: 1em;
  font-size: 1.1em;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

#messages div {
  margin: 0.4em 0;
  word-wrap: break-word;
  padding: 0.5em 0.7em;
  border-radius: 8px;
  max-width: 90%;
}

#messages .me {
  background: var(--bubble-me);
  align-self: flex-end;
  color: var(--accent2);
}

#messages .other {
  background: var(--bubble-other);
  color: var(--accent);
}

#form {
  display: flex;
  gap: 0.5em;
}

#pseudo,
#input {
  background: #222;
  border: 1px solid #333;
  color: white;
  padding: 0.7em;
  border-radius: 8px;
  font-size: 1em;
}

#pseudo {
  width: 20%;
  min-width: 100px;
}

#input {
  flex: 1;
  resize: none;
}

button {
  background: var(--accent);
  border: none;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  padding: 0.7em 1.2em;
  font-size: 1em;
  transition: background 0.2s ease;
}

button:hover {
  background: #0af;
}

#messages::-webkit-scrollbar {
  width: 8px;
}
#messages::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}
