/* DASHBOARD MESSAGE ITEM */
.customer_messages .message-item {
  background-color: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.customer_messages .message-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.customer_messages .message-item.message-new {
  border-left: 4px solid #28a745;
  background-color: #f8fff8;
}
.customer_messages .message-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
/* END DASHBOARD MESSAGE ITEM */

.customer_messages .message-from strong {
  color: #2c3e50;
  font-size: 16px;
}

.customer_messages .message-from small {
  color: #6c757d;
  font-style: italic;
}

.customer_messages .message-status {
  color: #6c757d;
  font-size: 12px;
}

.customer_messages .message-preview {
  color: #495057;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.customer_messages .message-footer {
  font-size: 12px;
  color: #6c757d;
  padding-top: 8px;
  text-align: right;
}
.customer_messages .message-footer small {
  font-size: 12px;
}

/* BADGES */
.badge {
  font-size: 11px;
  padding: 5px 15px;
  color: white;
  border-radius: 5px;
}
.badge-info {
  background-color: #6ea6f6;
}
.badge-dark {
  background-color: #4f4f4f;
}

.badge .customer_messages {
  float: right;
}
/* END BADGES */

/* Styles responsifs pour les messages */
@media (max-width: 768px) {
  .customer_messages .message-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .customer_messages .message-status {
    margin-top: 4px;
  }
}

/* MESSAGE DETAIL */
.message-bubble .message-content {
  padding: 15px;
  border-radius: 8px;
}
.message-employee .message-content {
  background-color: #87bb71;
  margin-left: 0;
  margin-right: 70px;
}
.message-customer .message-content {
  background-color: #79a8d7;
  margin-left: 70px;
  margin-right: 0;
}
.message-text {
  color: white;
  font-size: 14px;
}
.message-header {
  display: flex;
  margin-bottom: 7px;
  align-items: center;
}
.message-author {
  font-size: 14px;
  margin-right: 5px;
}
.message-author-name {
  font-weight: 600;
}
.message-customer .message-header {
  justify-content: end;
  text-align: right;
}

#reply-message {
  padding: 1.5rem;
  border: 1px solid #d3d3d3;
  border-radius: 10px;
  width: 100%;
  font-size: 13px;
  height: 100px;
}

/* END MESSAGE DETAIL */
