/* m-rooms — modüle özel stiller (DESIGN.md): Sohbet odaları, Botlar, BookRoom.
   Renkler yalnız base.css değişkenleri; açık ve koyu tema ikisi de. */

/* ── Odalar: liste + sohbet penceresi ── */
.rm-page { padding-top: 6px; }
.rm-shell { grid-template-columns: 340px minmax(0, 1fr); }
.rm-list, .rm-pane { display: flex; flex-direction: column; }
.rm-list #grpList { flex: 1; max-height: 640px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding-right: 2px; }
.rm-pane .admin-chat-messages { flex: 1; min-height: 360px; height: auto; max-height: 620px; }
.rm-pane > .empty { margin: auto 0; }

.rm-count { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; color: var(--muted); }
.rm-count svg { flex-shrink: 0; }
.rm-facts { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 2px; }

.rm-pane .admin-chat-head .btn-primary { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.rm-pane .admin-chat-head .btn-primary svg { width: 14px; height: 14px; }

.rm-system { display: inline-flex; align-items: center; gap: 6px; color: var(--yellow); background: var(--yellow-soft); }
.rm-system svg { flex-shrink: 0; }

.admin-group-sender .badge { font-size: 10px; padding: 0 6px; }
.admin-group-msg.hidden-msg .admin-msg-bubble { outline-color: var(--red); }

/* Dokunmatik ekranda üzerine gelmek yok → mesaj düğmeleri hep görünür. */
@media (hover: none) {
  .admin-group-msg .admin-msg-actions { display: flex; }
}

/* ── Oda ayrıntısı ── */
.rm-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-bottom: 12px; }
.rm-form-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.rm-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rm-field-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.rm-field-hint { font-size: 11px; color: var(--faint); }
.rm-field .select, .rm-field .input { width: 100%; }

.rm-member { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rm-member-who { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 200px; cursor: pointer; }
.rm-member-who:hover .mini-title { color: var(--orange); }
.rm-member-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ── BookRoom ── */
.rm-cover { width: 40px; height: 56px; border-radius: 6px; object-fit: cover; background: var(--sunken); display: block; flex-shrink: 0; }
.rm-cover.ph { border: 1px solid var(--border); }
.rm-log { max-height: 62vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.rm-log-row { background: var(--raised); border: 1px solid var(--border); border-radius: 10px; padding: 8px 11px; }
.rm-log-name { color: var(--orange); font-size: 12.5px; }
.rm-log-text { font-size: 13px; line-height: 1.45; margin-top: 2px; white-space: pre-wrap; word-break: break-word; }

/* ── Botlar ── */
.bot-card { cursor: pointer; transition: border-color .12s; }
.bot-card:hover { border-color: var(--orange); }
.bot-detail .subtabs { margin-top: 0; }

/* ── Dar ekranlar ── */
@media (max-width: 900px) {
  .rm-shell { grid-template-columns: 1fr; }
  .rm-list #grpList { max-height: 300px; }
  .rm-shell .chat-admin-list, .rm-shell .chat-admin-pane { min-height: 0; }
}
@media (max-width: 640px) {
  .rm-form { grid-template-columns: 1fr; }
  .rm-member-who { min-width: 0; }
  .rm-member-acts { justify-content: flex-start; width: 100%; }
  .rm-pane .admin-chat-head { flex-wrap: wrap; }
  .rm-pane .admin-msg-bubble { max-width: 88%; }
}
