/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
body, html { height: 100%; font-family: system-ui, sans-serif; }

/* Layout */
.layout {
  display: flex;
  height: 100vh;
  background: #f1f5f9;
  color: #111;
}

/* Sidebar */
.sidebar {
  width: 220px;
  background: #0f172a;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  padding: 20px;
}
.sidebar h2 { font-size: 18px; margin-bottom: 10px; }
.sidebar .status { font-size: 13px; opacity: 0.8; }

/* Chat zone */
.chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #e2e8f0;
}

/* Header */
.chat-header {
  background: #1f2937;
  color: #f8fafc;
  padding: 14px 20px;
  font-weight: bold;
}

/* Messages */
.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 20px;
  line-height: 1.4;
  font-size: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
}

.meta {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.7;
}


.msg.user {
  align-self: flex-end;
  background: #22d3ee;
  color: #083344;
  border-bottom-right-radius: 6px;
}

.msg.server {
  align-self: flex-start;
  background: #fff;
  color: #111;
  border-bottom-left-radius: 6px;
}

/* Composer */
.composer {
  display: flex;
  padding: 12px;
  background: #cbd5e1;
}
textarea {
  flex: 1;
  resize: none;
  border-radius: 20px;
  border: none;
  padding: 10px 14px;
  font-size: 14px;
}
textarea:focus {
  outline: 2px solid #22d3ee;
}
button {
  margin-left: 10px;
  padding: 0 16px;
  border-radius: 50%;
  border: none;
  background: #22d3ee;
  color: #083344;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.1s;
}
button:active { transform: scale(0.9); }
