/* Oda Yönetimi + yasak formu modalları — geniş kabuk */
#modalOverlay > .modal:has(.alan-room-mgmt),
#modalOverlay > .modal:has(.alan-room-ban-form) {
  max-width: min(96vw, 720px);
  width: 100%;
}

#modalOverlay > .modal:has(.alan-room-mgmt) {
  height: min(78vh, 640px);
  min-height: min(78vh, 640px);
  max-height: min(78vh, 640px);
}

#modalOverlay > .modal:has(.alan-room-mgmt) .modal-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.alan-room-mgmt {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-height: 0;
}

.alan-rm-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  width: 100%;
  max-width: 100%;
}

.alan-rm-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: none;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: var(--text-mid, #64748b);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  min-height: 44px;
  flex-shrink: 0;
}

.alan-rm-tab.is-active {
  background: rgba(41, 121, 255, 0.1);
  color: var(--primary, #2979ff);
  box-shadow: inset 0 -2px 0 var(--primary, #2979ff);
}

.alan-rm-pane {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 2px 8px;
  -webkit-overflow-scrolling: touch;
}

.alan-rm-section {
  margin-bottom: 16px;
}

.alan-rm-section-divider {
  padding-top: 12px;
  border-top: 1px dashed var(--border, #e2e8f0);
}

.alan-rm-section-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark, #0f172a);
}

.alan-rm-ban-form-host {
  margin: 10px 0;
}

.alan-rm-active-list-host {
  margin-top: 12px;
}

#modalOverlay .room-invite-search-wrap {
  position: relative;
}

#modalOverlay .room-invite-search-results,
.alan-room-mgmt .room-invite-search-results,
.chat-mod-user-picker .room-invite-search-results {
  background: var(--bg-white, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}

body.theme-dark #modalOverlay .room-invite-search-results,
body.theme-dark .alan-room-mgmt .room-invite-search-results {
  background: var(--bg-white, #1e293b);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

#modalOverlay .room-invite-search-item {
  background: var(--bg-white, #ffffff);
}

#modalOverlay .room-invite-search-item:hover {
  background: var(--bg-light, #f1f5f9);
}

body.theme-dark #modalOverlay .room-invite-search-item {
  background: var(--bg-white, #1e293b);
}

body.theme-dark #modalOverlay .room-invite-search-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.alan-rm-danger-btn {
  margin-top: 8px;
  background: #dc2626;
  border-color: #dc2626;
}
