/* Messaging

/* ----------------------------------------------------------- */
.message-dashboard ul {
  padding-left: 0px;
  padding-top: 15px;
}
#modal-contact-host .modal-title {
  font-weight: bold;

  font-size: 18px;
}
.message-users-list ul {
    margin-left: 0px !important;
}
#modal-contact-host .modal-header .close {
  margin-top: -15px;

  margin-right: -8px;
}

#modal-contact-host p {
  margin: 0 0 10px !important;
}

#modal-contact-host .modal-contact-host-form {
  border-bottom: 1px solid #e5e5e5;
}

.message-dashboard {
  display: flex;
}

@media only screen and (max-width: 768px) {
  .your-div {
    width: 100%;
  }
}

.message-dashboard .block-title {
  padding: 13px !important;

  border-bottom: 1px solid #e5e5e5 !important;

  position: sticky;

  top: 0;

  background-color: #fff;
}

.message-dashboard .message-details-header,
.message-dashboard .listing-details-header {
  padding: 17px;

  border-bottom: 1px solid #e5e5e5 !important;

  position: sticky;

  top: 0;

  background-color: #fff;

  display: flex;

  align-items: center;

  justify-content: space-between;
  border: 1px solid #f7f7f7;
}

.response-time {
  font-size: 16px;
}

.chat-header-left .title {
  margin-bottom: 0px;
}

.message-details-header .title,
.listing-details-header .title {
  width: 80%;
}

.message-details-header #message-search {
  width: 50%;

  border: 1px solid #ccc;

  padding: 10px;

  border-radius: 5px;
}

@media only screen and (max-width: 768px) {
  .message-dashboard .message-details-header {
    flex-direction: column;
  }

  .message-details-header .title,
  .message-details-header #message-search {
    width: 100%;
  }
}

.message-users-list {
  width: 30%;
  border-right: 1px solid #ccc;
}

.message-user-img img {
  border-radius: 50%;
  object-fit: cover;
}

.user-name-city {
  font-weight: 500;
  color: #888;
  font-size: 16px;
}

.message-users-list ul {
  list-style: none;
  padding: 15px 0px 15px 0px;
  margin-bottom: 0px !important;
}

.message-users-list ul li {
  padding: 20px;
  list-style: none;
  cursor: pointer;
  border-bottom: 1px solid #ddd;
}

.message-users-list ul li:last-child {
  border-bottom: none;
}

.message-users-list ul li:hover {
  background-color: #f9f9f9;

  border-radius: 25px;

  border-bottom: none;
}

.message-dashboard .selected {
  background-color: #f9f9f9;

  border-radius: 25px;

  border-bottom: none;
}

.message-box {
  width: 70%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mentor-message-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media only screen and (max-width: 768px) {
  .message-users-list {
    width: 50%;
  }

  .message-box {
    width: 50%;
  }

  .favorite-icon {
    margin-left: 0px;
  }
}

.all-messages-block {
  max-height: 500px;
  overflow-x: hidden;
  overflow-y: auto;
}

.all-messages-block {
  padding: 20px 20px 0px 20px;
}

.message-box .message-input {
  padding: 20px;
}

.all-messages-block .message-user-info {
  margin-bottom: 15px;
}

.all-messages-block .message-user-info:last-child {
  margin-bottom: 8px;
}

.message-input textarea {
  width: 100%;

  border: 1px solid #ccc;

  padding: 10px;

  border-radius: 5px;
}

.message-input button {
  margin-top: 10px;
}

.page-template-dashboard-chat .block-body {
  padding: 0px !important;
}

.message-user-info {
  display: flex;
  gap: 10px;
}

.message-user-content {
  flex: 1;
}

#chat-messages .message-user-content {
  display: flex;
}

/* .message-user-content .last-message {
  width: 93%;
}

.message-user-content .message-time {
  width: 7%;
  align-self: flex-end;
} */

.message-user-content .user-name {
  font-weight: bold;
}

.message-user-content .message-time {
  margin-left: 5px;

  font-size: 10px;

  color: #888;

  font-weight: 600;
}

.message-user-content .last-message {
  display: block;
  font-weight: normal;
  font-size: 16px;
}

.message-user-content .last-message-date {
  display: block;

  font-size: 12px;

  color: #888;

  font-weight: 500;
}

.all-messages-block .message-date {
  font-size: 10px;

  color: #888;

  font-weight: 600;

  text-align: center;
}

.searched-message-highlight {
  background-color: #d1954c;

  color: #fff;
}

.messages-page .disclaimer-note {
  padding: 20px !important;

  border-bottom: 1px solid #e5e5e5 !important;

  margin: 0px !important;

  font-size: 16px !important;
}

.messaging-block {
  display: flex;
}

.messaging-block .message-details-block {
  width: 100%;
}

.messaging-block .listing-details-block {
  width: 40%;

  border-left: 1px solid #e5e5e5;
}

@media only screen and (max-width: 768px) {
  .messaging-block {
    flex-direction: column;
  }

  .messaging-block .message-details-block,
  .messaging-block .listing-details-block {
    width: 100%;
  }

  .messaging-block .message-details-block {
    order: 2;
  }

  .messaging-block .listing-details-block {
    order: 1;

    border-bottom: 1px solid #e5e5e5;

    border-left: none;
  }
}

.system-message {
  text-align: center;

  color: #666;

  font-style: italic;

  margin: 10px 0;

  padding: 10px;

  background-color: #f9f9f9;

  border-radius: 5px;

  border: 1px solid #ddd;
}

.favorite-icon-container {
  position: relative;

  display: inline-block;
}

.favorite-icon {
  cursor: pointer;

  color: #ff6b6b;

  margin-left: 60px;

  transition: color 0.3s ease, opacity 0.3s ease;

  opacity: 0;
}

.favorite-icon.fas {
  color: #ff6b6b;

  opacity: 1;
}

.message-user-info:hover .favorite-icon {
  opacity: 1;
}

.message-user-info {
  padding: 5px;
}

/* Tooltip styling */

.tooltip {
  visibility: hidden;

  width: 120px;

  background-color: #333;

  color: #fff;

  text-align: center;

  border-radius: 4px;

  padding: 5px;

  position: absolute;

  z-index: 1;

  bottom: 125%; /* Position above the icon */

  left: 50%;

  margin-left: -60px; /* Center the tooltip */

  opacity: 0;

  transition: opacity 0.3s ease;
}

.favorite-icon-container:hover .tooltip {
  visibility: visible;

  opacity: 1;
}

.favorite-icon-container {
  align-self: center;
}

.report-msg-buttons,
.move-to-inbox {
  align-self: center;
}

.report-msg-buttons {
  display: flex;
  gap: 6px;
  align-self: flex-start;
  flex-wrap: wrap;
}

.msg-spam-button {
  font-weight: 700;

  line-height: 26px;

  padding: 0px 10px;

  text-align: center;

  border-radius: 4px;

  font-size: 12px;

  opacity: 0;
}

.btn-spam {
  font-weight: 700;

  line-height: 40px;

  padding: 0px 10px;

  text-align: center;

  border-radius: 4px;

  font-size: 12px;
}

.msg-user-header {
  display: flex;

  align-items: center;

  justify-content: space-between;

  flex-wrap: wrap;
}

.message-users-list .message-user-info:hover .msg-spam-button {
  opacity: 1;
}

.message-dashboard .btn.focus,
.message-dashboard .btn:focus,
.message-dashboard .btn:hover {
  background: #ccc !important;
}

.msg-alerts .alert {
  margin-bottom: 0px !important;

  margin-top: 20px !important;
}

.duplicate-inquiry-notice {
  background-color: #f5e7cd;

  border: 1px solid #f5a623;
}

.message-loader {
  display: flex;

  justify-content: center;

  align-items: center;

  height: 400px;
}

.message-loader .loader-spinner {
  border: 4px solid #f3f3f3;

  border-top: 4px solid #d1954c;

  border-radius: 50%;

  width: 40px;

  height: 40px;

  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.floating-btn-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3f47cc, #3f47cc1a);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  color: white;
  font-size: 24px;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.floating-btn i {
  font-weight: 900;
}

/* Popup Form Styles */
.popup-form {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 400px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  padding: 0px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.5);
  transform-origin: bottom right;
  transition: all 0.3s ease;
  z-index: 1001;
}

.popup-form.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.popup-form h3 {
  margin-top: 0;
  color: #333;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

.form-group textarea {
  height: 80px;
  resize: vertical;
}

#sendmessage .submit-btn {
  background-color: #3f47cc;
  font-size: 16px;
  color: white;
  padding: 20px 0px;
  width: 243px;
  letter-spacing: 1px;
  display: block;
  text-align: center;
  margin: auto;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 500;
  border: none;
}

#sendmessage .submit-btn:hover {
  background-color: #3f47cc1a;
  color: #3f47cc;
  border: none;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #777;
}

/* Overlay when popup is active */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.mentor-message-box .message-details-header #message-search {
  width: 100%;
}
/* .message-user-img {
  display: none;
} */
.mentor-message-box .all-messages-block {
  padding: 20px 0px 0px 0px;
}
.message-user-info.chat-candidate {
  text-align: right;
  align-self: flex-end;
  max-width: 80%;
}
.message-user-content.chat-mentor {
  background: #e7e7e7;
  padding: 10px;
  border-radius: 5px;
}
.favorite-icon-container {
  display: none;
}
.message-user-content.chat-candidate {
  background: aliceblue;
  padding: 10px;
  border-radius: 5px;
}
.message-user-info.chat-mentor {
  align-self: flex-start;
  max-width: 80%;
}
.mentor-message-box .message-user-header.message-details-header {
  padding: 20px;
  background: #3f47cc;
  color: white;
}
.mentor-message-box .title {
  color: white;
  line-height: 25px;
}
.response-time {
  font-size: 14px;
  padding-bottom: 10px;
}
#send-homey-message {
  width: 100%;
  height: 50px;
  border-radius: 0px;
  background: #3f47cc;
  font-size: 18px;
  text-transform: uppercase;
}
#send-homey-message:hover {
  width: 100%;
  height: 50px;
  border-radius: 0px;
  background: #3f47cc;
  font-size: 18px;
  text-transform: uppercase;
}
.mentor-message-box .all-messages-block {
  margin: 20px;
}

#cstabs {
  margin-top: 70px;
  margin-bottom: 70px;
}
report-msg-buttons {
  display: none;
}
.message-user.selected:hover .report-msg-buttons {
  display: flex;
}
.message-dashboard .selected {
  border-radius: 8px;
}

.message-users-list {
  border: 1px solid #f7f7f7;
  border-radius: 8px;
}
.message-user.selected {
  margin: 10px;
}
.all-messages-block {
  display: flex;
  flex-direction: column;
}

/* .message-user-info {
  flex-direction: column;
} */
.message-user:hover .report-msg-buttons {
  display: flex;
}
.message-user {
  margin: 10px;
}
.message-users-list ul li:hover {
  border-radius: 8px;
}

/* Attachment styles */
.message-attachment {
  margin-top: 3px;
  display: block;
  font-size: 16px;
}

.message-attachment a {
  display: flex;
  align-items: center;
  color: #3f47cc;
  text-decoration: underline;
}

.message-attachment i {
  margin-right: 8px;
  font-size: 18px;
}

.message-attachment span {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Attachment preview */
#attachment-preview {
  margin-top: 10px;
}

.attachment-preview-item {
  display: flex;
  align-items: center;
  padding: 8px;
  background: #f5f5f5;
  border-radius: 4px;
  margin-bottom: 5px;
}

.attachment-preview-item i {
  margin-right: 8px;
  font-size: 18px;
}

.attachment-preview-item span {
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.remove-attachment {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 16px;
  margin-left: 8px;
}

.remove-attachment:hover {
  color: #ff0000;
}

/* Message actions */
.message-actions {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.attachment-label {
  cursor: pointer;
  margin-right: 10px;
  color: #666;
  font-size: 18px;
}

.attachment-label:hover {
  color: #333;
}

.chat-candidate .message-attachment a {
  justify-content: flex-end;
}

.message-actions {
  padding: 0 10px;
  gap: 10px;
}

.message-actions i {
  font-size: 24px;
}

.message-actions label {
  margin: 0;
}

.message-actions #send-homey-message {
  margin: 0;
}

.bact-to-list {
  display: none;
}

@media (max-width: 767px) {
  .messages-page .message-box {
    display: none;
  }
  .messages-page .message-users-list {
    width: 100%;
  }

  .bact-to-list {
    display: block;
    margin-right: 10px;
    background-color: #3f47cc;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
  }

  .chat-header-left {
    display: flex;
    width: 100%;
    align-items: center;
  }

  .col-active {
    display: block !important;
    width: 100% !important;
  }

  .col-hide {
    display: none !important;
  }
}

#search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  margin: 10% auto;
  width: 60%;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#search-results {
  margin-top: 20px;
}
button#new-message-btn {
    background: #002f6c;
    color: white;
}

.msg-user-header h2 {
    font-size: 28px;
    margin-bottom: 0px;
}


.msg-action-btns {
    margin-top: 20px;
}

button#toggle-spam {
    background: #002f6c;
    color: white;
}

button#toggle-archive-msg {
    background: #002f6c;
    color: white;
}

button#toggle-blocked-msg {
    background: #002f6c;
    color: white;
}

.report-msg-buttons button {
    background: #002f6c !important;
    color: white;
}

li.message-user {
    background: aliceblue;
    border-radius: 12px;
}

.block-title {
    background: aliceblue !important;
}

.message-box {
    border: 1px solid #f3efef;
    border-radius: 12px;
}

.message-dashboard {
    gap: 10px;
}
.report-msg-buttons button {
    background: #002f6c !important;
    color: white !important;
}
.message-user-content.chat-candidate {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header-left h2 {
    font-size: 24px;
    color: white;
}

.message-user-header.message-details-header {
    background: #002f6c;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
	position: relative;
    z-index: -1;
}
div#search-modal .modal-content {
    border-radius: 12px;
}
.modal-content h2 {
    font-size: 22px;
}
.search-result-item:hover {
    cursor: pointer;
}
button#send-message-btn {
    background: #002f6c !important;
	border-radius:12px;
    color: white;
    height: 44px;
}
.message-actions {
    flex-direction: column-reverse;
}
#send-homey-message{
	background: #e1c400 !important;
    border-radius: 12px;
}
button#send-homey-message:hover {
    background: #e1c400 !important;
    border-radius: 12px;
    font-size: 16px;
	
}
div#message-form {
    margin-top: 20px;
}