/* === Compact Text Publisher Modal === */
#modal.show .modal-dialog {
  max-width: 650px !important;
  width: 60% !important;
  margin: 1.5rem auto !important;
}



/* === Publisher Box === */
#publisher-text-wrapper {
  position: relative;
  padding: 0;
}

#publisher-text-wrapper .x-form.publisher {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 20px;
  min-height: 250px;
  max-width: 500px;
  margin: auto;
}

#publisher-text-wrapper .publisher-overlay {
  display: none; /* No background overlay needed */
}

/* === Text Area === */
#publisher-text-wrapper .publisher-message textarea {
  min-height: 50px !important;
    background-color: #d3d4d5;
    border-radius: 10px;
}

/* === Footer (Post Button) === */
#publisher-text-wrapper .publisher-footer {
  text-align: right;
  margin-top: 10px;
}

#publisher-text-wrapper .publisher-footer .btn {
  border-radius: 8px;
  padding: 6px 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  height:35px !important;
  width:100px !important;
}

/* === Avatar === */
#publisher-text-wrapper .publisher-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  left: 0px !important;
}

/* === Responsive === */
@media (max-width: 767px) {
  #modal.show .modal-dialog {
    width: 90% !important;
    margin: 1rem auto !important;
  }
  #publisher-text-wrapper .x-form.publisher {
    padding: 15px;
    min-height: auto;
  }
  #publisher-text-wrapper .publisher-footer .btn {
    padding: 6px 16px;
  }
   #publisher-text-box {
        height: auto !important;
        min-height: 0 !important;
    }
}
.colored-text-wrapper {
  position: relative;
}




.publisher-emoji-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  cursor: pointer;
}

.publisher-textarea-wrap {
  position: relative;
}





.publisher-textarea-wrap {
  position: relative;
}

/* right side icon group */
.publisher-inside-tools {
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 10;
}

/* force icon size */
.inside-tool-icon {
  width: 22px !important;
  height: 22px !important;
  cursor: pointer;
  opacity: 0.9;
}

.inside-tool-icon:hover {
  transform: scale(1.15);
}

/* make room inside textarea */
.publisher-textarea-wrap textarea {
  padding-right: 190px !important;
}

.publisher-message {
  padding-left: 0 !important;
}

.publisher-message textarea
 {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 10px 40px 10px 12px !important;
    box-sizing: border-box;
}

.publisher-body {
  margin-left: 0 !important;
}
.publisher-header .publisher-username {
    margin-left: 60px;
    line-height: 1;
    font-weight: 600;
}
.publisher-message {
  padding-left: 0 !important;
}

/* Increase publisher header height */
.publisher-header {
  min-height: 48px;         
  padding: 8px 0;            /* vertical space */
  display: flex;
  align-items: center;
  gap: 10px;
}
.publisher-title {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 3px solid #e4e6eb;
  
}
.dropdown-menu .js_scroller {
   
    max-height: 85px !important;
  .publisher-tagged-people {
  margin: 8px 0;
}
.publisher-tag-textarea {
  margin-top: 8px;
}




}
.tag-people-icon {
  width: 30px !important;
  height: 30px !important;
}
/* 🔵 Main post textarea (keep as-is) */
#publisher-text-wrapper .publisher-textarea-wrap textarea {
  background-color: #d3d4d5;
}

/* 🟢 Tag-people textarea (override main rule) */
#publisher-text-wrapper .publisher-tag-textarea textarea {
  background-color: #f0f2f5 !important;
  border: 1px dashed #c7ccd1;
  border-radius: 10px;
  min-height: 44px !important;
}
/* ===== Publisher textarea wrapper ===== */
.publisher-textarea-wrap {
  position: relative;
}

/* ===== Right-side tool icons ===== */
.publisher-inside-tools {
  position: static;          /* 🔑 remove absolute positioning */
  margin-top: 8px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ===== Tool icons ===== */
.publisher-inside-tools .inside-tool-icon {
  width: 22px;
  height: 22px;
  cursor: pointer;
  opacity: 0.9;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.publisher-inside-tools .inside-tool-icon:hover {
  transform: scale(1.15);
}

/* ===== Textarea (THIS is the key) ===== */
.publisher-textarea-wrap textarea {
  width: 100%;
  min-height: 50px;
  padding: 10px 170px 10px 12px; /* 🔑 right padding = icon space */
  box-sizing: border-box;
  background-color: #d3d4d5;
  border-radius: 10px;
}


