.thread-emoji-btn,
.thread-upload-btn,
.thread-send-btn {
    padding: 6px 10px;
    margin: 0;
    background: none;
    color: black;
}
.thread-input[contenteditable]:empty:before {
  content: attr(placeholder);
  color: #999;
  pointer-events: none;
}

.msg-thread-button {
    margin-left: 40px;
    padding: 5px;
}
 
/* Panel thread */
.select-to-chat.fullscreen .view-thread-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 50px)!important;
  /*background: #292929;
      color: white;*/
}

/* Body chia 2 phần: replies (cuộn) + form */
.view-thread-panel-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden; /* tránh double scroll */
  padding: 10px;
  /*background: linear-gradient(to bottom, #000, #3b3b3b);*/
  
}

/* Danh sách tin nhắn thread: vùng cuộn chính */
.scrollable-thread-replies {
  flex: 1;
  overflow-y: auto;
   
}

/* Form luôn nằm dưới cùng */
form.thread-chat-form {
    border: 1px solid #8e8e8e4f;
  padding: 8px;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
}

/* Input & button */
.thread-input-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.thread-input {
  flex: 1;
  min-height: 40px;
  max-height: 300px;
  padding: 6px 10px;
  border-radius: 6px;
  outline: none;
  overflow-y: auto;
  font-size: 14px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.thread-input[contenteditable]:empty:before {
  content: attr(placeholder);
  color: #999;
  pointer-events: none;
}


.scrollable-thread-replies .is-thread-root {
    background: #ececec;
    /*border: 1px solid #8e8e8e4f;*/
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.thread-title-block {
    border-bottom: 1px solid #8e8e8e4f;
    padding-bottom: 12px;
    text-align: left;
    position: relative;
}

.thread-title-text {
  font-size: 25px;
  line-height: 1.3;
  word-break: break-word;
}
.sc-pinned-list-thread {
    padding: 10px;
}
.thread-emoji-popup  {
  position: absolute;
  bottom: 120px; /* chỉnh theo UI chat */
  right: 10px;
  background: #fff;
  border: 1px solid #8e8e8e4f;
  padding: 6px;
  width: 340px;
  max-height: 350px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, 24px);
  gap: 4px;
  z-index: 99999;
}
 

#talk-page-placeholder {
  display: flex;
  flex-direction: column;       /* xếp dọc ảnh và chữ */
  justify-content: center;      /* căn giữa theo chiều dọc */
  align-items: center;          /* căn giữa theo chiều ngang */
  height: 70vh;                 /* chiều cao vùng hiển thị */
  text-align: center;
  color: #999;
  gap: 16px;                    /* khoảng cách giữa các phần tử */
}
 


