

.dropdown--messages {
  width: 340px;
  top: calc(var(--total-header) + 6px);
  left: 100px;
}




.msg-list {
  max-height: 360px;
  overflow-y: auto;
  direction: rtl;
}

.msg-list::-webkit-scrollbar { width: 4px; }
.msg-list::-webkit-scrollbar-thumb { background: var(--color-border-light); border-radius: 4px; }


.msg-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: background var(--transition-fast);
  direction: rtl;
}

.msg-item:hover {
  background-color: var(--color-bg-hover);
}

.msg-item.unread {
  background-color: rgba(108,99,255,0.06);
}

.msg-item__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.msg-item__avatar-icon {
  width: 26px;
  height: 26px;
}

.msg-item__status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-success);
  border: 2px solid var(--color-bg-card);
}

.msg-item__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.msg-item__body {
  flex: 1;
  overflow: hidden;
}

.msg-item__name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text);
}

.msg-item__preview {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: rtl;
}

.msg-item__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.msg-item__time {
  font-size: 0.62rem;
  color: var(--color-text-dim);
}

.msg-item__badge {
  min-width: 16px;
  height: 16px;
  border-radius: var(--border-radius-full);
  background-color: var(--color-primary);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}
