#messageThread {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}

#messageContent {
  flex-grow: 1;
  overflow-y: auto;
  position: relative;
}

#messageInputWrapper {
  padding: 10px;
}

#messageInput {
  min-height: 100px;
  width: 100%;
  resize: none;
}
#message_list{
  height:100%;
}

.message_list_item{
background-color:white;
border-bottom: 1px solid #ccc;
padding: 5px;
cursor: pointer;
}

.message_list_item_last{
  font-size: 12px;
}

.message_list_item_participants{
  margin-top: 5px;
  font-size: 12px;
  color:rgb(119, 119, 119)
}

.message_list_item_date{
  color:rgb(119, 119, 119)
}

.member-icon{
  width:16px;
  height:16px;
}

  .football_buddy{
    background-color:var(--affiliBlue);
    padding: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    margin-left: 20px;
    margin-top:5px;
    margin-bottom: 5px;
    color:white;
  }


  .football_currentUser{
    background-color:var(--sl-color-gray-300);
    padding: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    margin-right: 20px;
    margin-top:5px;
    margin-bottom: 5px;
  }

  .mf_date{
    font-size: 8px;
    color:rgb(119, 119, 119);
  }

  .mf_date_buddy{
    margin-left: 20px;
  }

  .mf_date_current{
    margin-right: 20px;
  }

  .mf_name{
    margin-top: 20px;
    font-size: 10px;
    font-weight: 900;
  }

  #messageThread_toolbar{
    height:40px;
    width:100%;
    border-bottom: 1px solid #ccc;
  }

 .messageBtn{
    margin-top: auto;
    margin-bottom: auto;
  }

.tagify-list-container {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ddd;
  margin-top: 10px;
  padding: 8px;
}

.tagify-list-item {
  display: flex;
  align-items: center;
  padding: 6px;
  cursor: pointer;
}

.tagify-list-item:hover {
  background-color: #f5f5f5;
}

.memberIcon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}
#memberTags{
  min-width: 400px;
}

.tagify {
  width: 100%; /* or a fixed width like 300px */
  max-width: 500px;
  display: block;
}

.tagify__input {
  flex: 1 1 auto !important;
  min-width: 100px !important;
  width: auto !important;
}


.chat-input-container {
  border-top: 1px solid #ccc;
  padding: 10px;
  background: #f9f9f9;
}

#imagePreviewContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.image-preview {
  position: relative;
  display: inline-block;
}

.image-preview img {
  max-height: 80px;
  border-radius: 6px;
}

.remove-preview {
  position: absolute;
  top: -6px;
  right: -6px;
  background: white;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  padding: 2px;
}

.chat-input-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

#messageInput {
  flex: 1;
  max-height: 150px;
  min-height: 36px;
  resize: none;
  padding: 8px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  line-height: 1.4;
  overflow-y: auto;
}

.message-image {
  display: block;
  max-width: 200px;       /* Maximum width */
  max-height: 200px;      /* Maximum height */
  width: auto;            /* Maintain aspect ratio */
  height: auto;
  margin: 5px 10px 5px 10px;
  border-radius: 8px;
  object-fit: contain;
}

.member-name{
  font-size: 12px;
}
.typing {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 10px;
}

#typing-indicator{
  margin: 20px;
  position: absolute;
  bottom: 0px;
}

.hidden {
  display: none;
}

.dot {
  height: 8px;
  width: 8px;
  margin: 0 2px;
  background-color: var(--affiliBlue);
  border-radius: 50%;
  display: inline-block;
  animation: blink 1.4s infinite;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
}

#messageThread_mask{
  width:100%;
  height:100%;
  background-color: white;
  position: absolute;
  z-index: 1;
  display: none;
}

#sidebar{
  display: flex;
  flex-direction: column;
}

.message_list_item_dash {
    background-color: white;
    padding: 5px;
    cursor: pointer;
}

.message_list_item_last_dash {
    font-size: 12px;
    margin-top:10px;
}