/*=====================================
            MESSAGE PAGE STYLE
======================================*/


.message-part {
  width: 100%;
  height: 100vh;
  padding-top: 30px;
  background: var(--chalk);
}

.message-filter {
  padding: 20px;
  border-radius: 8px;
  background: var(--white);
}

.message-filter-group {
  padding-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.message-filter-btn i {
  color: var(--gray);
  transition: all linear 0.3s;
  -webkit-transition: all linear 0.3s;
  -moz-transition: all linear 0.3s;
  -ms-transition: all linear 0.3s;
  -o-transition: all linear 0.3s;
}

.message-filter-btn i:hover {
  color: var(--primary);
}

.message-filter-src {
  margin-bottom: 20px;
  display: none;
}

.message-filter-src input {
  width: 100%;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--chalk);
  border: 1px solid var(--border);
}

.message-filter-src.active {
  display: block;
}

.message-list {
  height: calc(100vh - 200px);
}

.message-inbox {
  padding: 18px 20px;
  border-radius: 8px;
  background: var(--white);
}

.inbox-header {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.inbox-header-profile {
  display: flex;
  align-items: center;
  justify-content: center;
}

.inbox-header-img {
  border-radius: 50%;
  margin-right: 12px;
  border: 2px solid var(--primary);
}

.inbox-header-img img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: contain;
  padding: 5px;
  border: 2px solid transparent;
}

.inbox-header-img.active::before {
  background: var(--green);
}

.inbox-header-text h5 {
  line-height: 20px;
  text-transform: capitalize;
}

.inbox-header-text h5 a {
  color: var(--heading);
  transition: all linear 0.3s;
  -webkit-transition: all linear 0.3s;
  -moz-transition: all linear 0.3s;
  -ms-transition: all linear 0.3s;
  -o-transition: all linear 0.3s;
}

.inbox-header-text h5 a:hover {
  color: var(--primary);
}

.inbox-header-text span {
  font-size: 14px;
  color: var(--gray);
  text-transform: capitalize;
}

.inbox-header-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.inbox-header-list li {
  margin-left: 12px;
}

.inbox-header-list li:first-child {
  margin-left: 0px;
}

.inbox-header-list li a {
  width: 38px;
  height: 38px;
  font-size: 14px;
  line-height: 38px;
  border-radius: 50%;
  text-align: center;
  color: var(--gray);
  background: var(--chalk);
  transition: all linear 0.3s;
  -webkit-transition: all linear 0.3s;
  -moz-transition: all linear 0.3s;
  -ms-transition: all linear 0.3s;
  -o-transition: all linear 0.3s;
}

.inbox-header-list li a:hover {
  color: var(--white);
  background: var(--primary);
}

.inbox-chat-list {
  height: calc(100vh - 285px);
}

.inbox-chat-item {
  margin: 8px 0px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.inbox-chat-img {
  margin-bottom: 25px;
  align-self: flex-end;
}

.inbox-chat-img img {
  width: 105px;
  /* height: 105px; */
  border-radius: 50%;
  object-fit: contain;

}

.inbox-chat-text {
  margin: 5px 12px 0px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.inbox-chat-item:hover .inbox-chat-action {
  opacity: 1;
}

.inbox-chat-text p {
  font-size: 15px;
  line-height: 22px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--chalk);
  margin-bottom: 0;
  display: inline-block;
  max-width: fit-content;
}

.inbox-chat-action {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0px;
  opacity: 0;
  transition: all linear 0.2s;
}

.inbox-chat-action a {
  width: 32px;
  height: 32px;
  background: #f0f2f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  margin: 0px 6px;
  font-size: 12px;
  color: #aaaaaa;
  transition: all linear 0.2s;
}

.inbox-chat-action a:hover {
  color: var(--primary);
}

.inbox-chat-time {
  display: block;
  font-size: 13px;
  margin-left: 25px;
  text-transform: capitalize;
}

.my-chat {
  flex-direction: row-reverse;
}

.my-chat .inbox-chat-text {
  align-items: flex-end;
}

.my-chat .inbox-chat-text p {
  color: var(--white);
  background: var(--primary);
}


.my-chat .inbox-chat-time {
  text-align: right;
  margin: 0px 25px 0px 0px;
}

.inbox-chat-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
}

/* 80% input */
.inbox-chat-form input {
  flex: 0 0 80%;
  height: 46px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
  outline: none;
}

/* 20% button */
.inbox-chat-form button {
  flex: 0 0 10%;
  height: 46px;
  border-radius: 6px;
  border: none;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Icon */
.inbox-chat-form button i {
  font-size: 16px;
}


@media (max-width: 991px) {

  .message-list {
    height: 350px;
    margin-bottom: 30px;
  }

  .inbox-chat-list {
    height: 350px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .message-list {
    height: calc(100vh - 255px);
  }

  .inbox-chat-list {
    height: calc(100vh - 333px);
  }
}

.inbox-chat-list {
  height: calc(100vh - 250px);
  overflow-y: auto;
}

.chat-image {
  max-width: 100px;
  max-height: 100px;
  border-radius: 8px;
  margin-top: 5px;
  display: block;
}

.reply-bubble {
  background: lightgray;
  border-left: 4px solid #25d366;
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 4px;
  cursor: pointer;
  max-width: 250px;
  overflow: visible;
  /* allow content to expand */
  white-space: normal;
  /* allow text to wrap to multiple lines */
}

.reply-bubble p {
  margin: 0 !important;
  font-size: 12px !important;
  color: #666 !important;
  background: transparent !important;
  padding: 0 !important;
  overflow: visible;
  /* allow paragraph content to expand */
  white-space: normal;
  /* wrap text inside p */
}


.reply-bubble strong {
  font-size: 12px;
  color: #25d366;
  display: block;
}

.reply-preview {
  display: flex;
  align-items: center;
  background: #f0f2f5;
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 6px;
  position: relative;
}

.reply-accent {
  width: 4px;
  height: 40px;
  background: #25d366;
  margin-right: 8px;
  border-radius: 4px;
}

.reply-content {
  flex: 1;
}

.reply-content p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.reply-preview button {
  background: none !important;
  border: none;
  color: #888;
  cursor: pointer;
  padding: 0 10px;
  font-size: 18px;
  height: auto !important;
  flex: 0 0 auto !important;
}