body {
  font-family: Arial, sans-serif;
}




.btn {
  background: #2c3e50;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

.btn:hover {
  background: #34495e;
}

.btn:active {
  transform: scale(0.97);
}

.chat {
  width: 300px;
  height: 400px;
  border: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
}

.messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.msg {
  max-width: 70%;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
}

.sent {
  align-self: flex-end;
  background: #2c3e50;
  color: #fff;
}

.received {
  align-self: flex-start;
  background: #ecf0f1;
}

.composer {
  display: flex;
  border-top: 1px solid #ddd;
}

textarea {
  flex: 1;
  border: none;
  padding: 8px;
  resize: none;
  outline: none;
  font-family: Arial, sans-serif;
}

button {
  border: none;
  background: #2c3e50;
  color: #fff;
  padding: 0 12px;
  cursor: pointer;
}


.wrap {
  display: flex;
  gap: 10px;
  font-family: Arial, sans-serif;
}

.chat, .panel {
  width: 300px;
  height: 400px;
  border: 1px solid #ddd;
  display: flex;
  flex-direction: column;
}

/* CHAT */
.messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
}

.msg {
  padding: 6px 8px;
  margin-bottom: 6px;
  border-radius: 8px;
  max-width: 70%;
}

.sent { background: #2c3e50; color:#fff; margin-left:auto; }
.received { background: #ecf0f1; }

.composer {
  display: flex;
  border-top: 1px solid #ddd;
}

textarea {
  flex: 1;
  border: none;
  padding: 6px;
  resize: none;
  outline: none;
}

button {
  background: #2c3e50;
  color: #fff;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
}

button:hover { background: #34495e; }

/* PANEL */
.events {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 12px;
  background: #f9f9f9;
}

.controls {
  border-top: 1px solid #ddd;
  padding: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.controls input {
  width: 48%;
  padding: 4px;
  font-size: 12px;
}


