/* --- GENERAL --- */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background: #1e1e2f;
  color: #fff;
}

.chat-container {
  display: flex;
  flex-direction: column;
  max-width: 700px;
  margin: 20px auto;
  height: 90vh;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  background: #2c2c3e;
}

/* --- HEADER --- */
header {
  padding: 15px;
  background: #3b3b55;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  margin: 0;
  font-size: 1.5em;
  color: #ffcc00;
}

header input {
  padding: 6px 10px;
  border-radius: 5px;
  border: none;
  width: 150px;
}

/* --- CHAT BOX --- */
.chat-box {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --- MESSAGE BULLES --- */
.message {
  max-width: 70%;
  padding: 10px 15px;
  border-radius: 20px;
  word-wrap: break-word;
  position: relative;
  font-size: 0.95em;
  line-height: 1.3;
}

.message.user {
  background: #4e90ff;
  align-self: flex-end;
  border-bottom-right-radius: 0;
}

.message.admin {
  background: #ff4d4d;
  align-self: flex-start;
  font-weight: bold;
}

.message.other {
  background: #6666ff;
  align-self: flex-start;
}

/* --- FOOTER --- */
footer {
  display: flex;
  padding: 10px 15px;
  background: #3b3b55;
  gap: 10px;
}

footer input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 5px;
  border: none;
}

footer button {
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  background: #ffcc00;
  color: #2c2c3e;
  font-weight: bold;
  cursor: pointer;
}

footer button:hover {
  background: #ffaa00;
}