/* /public_html/assets/css/chat/chat-room-editor.css */

.chat-room-editor{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.chat-room-editor__intro{
  font-size:14px;
  line-height:1.45;
  opacity:.86;
}

.chat-room-editor__section{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.chat-room-editor__label{
  font-size:13px;
  font-weight:700;
  opacity:.92;
}

.chat-room-editor__hint{
  font-size:12px;
  line-height:1.45;
  opacity:.74;
}

.chat-room-editor__field,
.chat-room-editor__textarea{
  width:100%;
  box-sizing:border-box;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.14);
  color:inherit;
  border-radius:16px;
  padding:14px 16px;
  font:inherit;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.chat-room-editor__textarea{
  min-height:96px;
  resize:vertical;
}

.chat-room-editor__field:focus,
.chat-room-editor__textarea:focus{
  border-color:rgba(255,255,255,.22);
  box-shadow:0 0 0 3px rgba(255,255,255,.05);
}

.chat-room-editor__visibility{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}

@media (min-width: 768px){
  .chat-room-editor__visibility{
    grid-template-columns:1fr 1fr;
  }
}

.chat-room-editor__visibility-card{
  display:flex;
  align-items:flex-start;
  gap:12px;
  width:100%;
  text-align:left;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.14);
  color:inherit;
  border-radius:18px;
  padding:14px;
  cursor:pointer;
  transition:border-color .18s ease, box-shadow .18s ease, transform .08s ease;
}

.chat-room-editor__visibility-card:hover{
  border-color:rgba(255,255,255,.18);
  box-shadow:0 10px 26px rgba(0,0,0,.12);
  transform:translateY(-1px);
}

.chat-room-editor__visibility-card.is-active{
  border-color:rgba(255,166,193,.62);
  box-shadow:0 12px 28px rgba(214,82,126,.14);
}

.chat-room-editor__visibility-card[disabled]{
  opacity:.58;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

.chat-room-editor__visibility-icon{
  flex:0 0 auto;
  width:40px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:rgba(255,255,255,.07);
  font-size:18px;
}

.chat-room-editor__visibility-text{
  min-width:0;
  flex:1 1 auto;
}

.chat-room-editor__visibility-title{
  font-size:15px;
  font-weight:800;
  line-height:1.2;
}

.chat-room-editor__visibility-desc{
  margin-top:4px;
  font-size:13px;
  line-height:1.4;
  opacity:.76;
}

.chat-room-editor__chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.chat-room-editor__chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:34px;
  padding:6px 10px 6px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  font-size:13px;
  line-height:1.2;
}

.chat-room-editor__chip-remove{
  width:24px;
  height:24px;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  color:inherit;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.chat-room-editor__search-wrap{
  position:relative;
}

.chat-room-editor__results{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:12px;
}

.chat-room-editor__result{
  width:100%;
  text-align:left;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.12);
  color:inherit;
  border-radius:16px;
  padding:12px 14px;
  cursor:pointer;
  transition:border-color .18s ease, box-shadow .18s ease, transform .08s ease;
}

.chat-room-editor__result:hover{
  border-color:rgba(255,255,255,.18);
  box-shadow:0 10px 24px rgba(0,0,0,.10);
  transform:translateY(-1px);
}

.chat-room-editor__result.is-selected{
  opacity:.56;
  cursor:default;
  box-shadow:none;
  transform:none;
}

.chat-room-editor__result-name{
  font-size:14px;
  font-weight:800;
  line-height:1.25;
}

.chat-room-editor__result-meta{
  margin-top:4px;
  font-size:12px;
  line-height:1.4;
  opacity:.76;
}

.chat-room-editor__empty{
  border:1px dashed rgba(255,255,255,.14);
  border-radius:16px;
  padding:16px;
  font-size:13px;
  opacity:.82;
  background:rgba(255,255,255,.02);
}

:where(body.theme-light, html[data-theme="light"]) .chat-room-editor__field,
:where(body.theme-light, html[data-theme="light"]) .chat-room-editor__textarea{
  border-color:#d7deea;
  background:#ffffff;
  color:#1f2937;
  box-shadow:inset 0 1px 2px rgba(15,23,42,.03);
}

:where(body.theme-light, html[data-theme="light"]) .chat-room-editor__field:focus,
:where(body.theme-light, html[data-theme="light"]) .chat-room-editor__textarea:focus{
  border-color:#e698af;
  box-shadow:0 0 0 3px rgba(230,152,175,.16);
}

:where(body.theme-light, html[data-theme="light"]) .chat-room-editor__visibility-card,
:where(body.theme-light, html[data-theme="light"]) .chat-room-editor__result{
  border-color:#d8e0ec;
  background:linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  color:#1f2937;
  box-shadow:0 8px 20px rgba(20,27,44,.05);
}

:where(body.theme-light, html[data-theme="light"]) .chat-room-editor__visibility-card.is-active{
  border-color:#f2b4c8;
  box-shadow:0 12px 28px rgba(214,82,126,.10);
}

:where(body.theme-light, html[data-theme="light"]) .chat-room-editor__visibility-icon{
  background:#fff2f6;
  color:#8c3b57;
}

:where(body.theme-light, html[data-theme="light"]) .chat-room-editor__chip{
  border-color:#e7c3cf;
  background:#fff3f7;
  color:#8c3b57;
}

:where(body.theme-light, html[data-theme="light"]) .chat-room-editor__chip-remove{
  background:#f6d7e1;
  color:#8c3b57;
}

:where(body.theme-light, html[data-theme="light"]) .chat-room-editor__empty{
  border-color:#d7deea;
  background:rgba(247,249,253,.96);
  color:#697386;
}
