/* ==== Ride Your Demons Chat Styles ==== */
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #111;
  color: #eee;
  height: 100vh;
  display: flex;
}

#chat-shell {
  display: flex;
  flex: 1;
  width: 100%;
  height: 100vh;
}

.sidebar {
  width: 220px;
  background: #1b1b1b;
  border-right: 1px solid #333;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar h2 {
  font-size: 1rem;
  padding: 0.75rem;
  margin: 0;
  border-bottom: 1px solid #333;
  background: #222;
}

.sidebar .section {
  padding: 0.5rem;
  flex: 1;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar li {
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  border-radius: 4px;
}

.sidebar li:hover {
  background: #2a2a2a;
}

.sidebar li.active {
  background: #444;
  font-weight: bold;
}

.admin-row {
  padding: 0.5rem;
}

button.secondary {
  width: 100%;
  padding: 0.5rem;
  background: #333;
  border: none;
  border-radius: 4px;
  color: #eee;
  cursor: pointer;
}

button.secondary:hover {
  background: #444;
}

.panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #181818;
}

.header {
  padding: 0.75rem;
  border-bottom: 1px solid #333;
}

.header .title {
  font-size: 1.1rem;
  font-weight: bold;
}

.header .subtle {
  font-size: 0.8rem;
  color: #aaa;
}

#messages, #dm-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
}

.message {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.message .meta {
  font-size: 0.75rem;
  color: #999;
}

.composer {
  display: flex;
  border-top: 1px solid #333;
}

.composer input {
  flex: 1;
  padding: 0.5rem;
  border: none;
  background: #222;
  color: #eee;
}

.composer button {
  padding: 0 1rem;
  border: none;
  background: #444;
  color: #eee;
  cursor: pointer;
}

.composer button:hover {
  background: #555;
}
