/* Thu hoi, ten nguoi gui, ghim/tat thong bao, chuyen tiep, tin nhan mau, thanh ghi am */

/* ---------- Tin bi thu hoi ---------- */
.msg-row.recalled .msg { box-shadow: inset 0 0 0 1.5px rgba(229, 72, 77, .35); }
.msg-recalled-tag {
  display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 0 7px; border-radius: 999px;
  background: var(--danger-soft); color: var(--danger); font-size: 10.5px; font-weight: 600; cursor: help;
}
.msg-recalled-tag::before { content: "↩"; font-size: 10px; }

/* ---------- Ten nhan vien gui tin ---------- */
.msg-sent-by { margin-left: 6px; font-weight: 600; color: var(--primary); opacity: .85; }
.msg-sent-by::before { content: "· "; color: var(--muted); font-weight: 400; }

/* ---------- Menu: muc nguy hiem ---------- */
.ctx-menu-item.danger { color: var(--danger); }

/* ---------- Ghim / tat thong bao ---------- */
.conv-flag-icons { font-size: 11px; margin-left: 4px; flex-shrink: 0; opacity: .8; }
.conversation-list li.muted .unread-badge { background: var(--text-muted); box-shadow: none; }

/* ---------- Chuyen tiep ---------- */
.forward-box { width: 460px; max-width: calc(100vw - 32px); }
.forward-preview {
  padding: 8px 12px; border-left: 3px solid var(--primary); background: var(--primary-soft); border-radius: 8px;
  font-size: 13px; color: var(--text-2); max-height: 60px; overflow: hidden;
}
.forward-list { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.forward-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; cursor: pointer; }
.forward-item:hover { background: var(--surface-hover); }
.forward-item.selected { background: var(--primary-soft); }
.forward-item .conv-avatar { width: 34px; height: 34px; font-size: 13px; }
.forward-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forward-acc { font-size: 11px; color: var(--muted); }
.forward-check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); flex-shrink: 0; }
.forward-item.selected .forward-check { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 3px #fff; }
.forward-actions { display: flex; align-items: center; gap: 10px; }
.forward-actions #forward-count { flex: 1; }
.forward-actions .link-btn { padding: 8px 14px; }

/* ---------- Tin nhan mau ---------- */
.quick-item { align-items: flex-start; }
.quick-key { font-weight: 700; color: var(--primary); font-size: 13px; flex-shrink: 0; }
.quick-text { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.quick-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 2px; border-top: 1px solid var(--border); margin-top: 4px; }
.quick-foot button { border: none; background: transparent; color: var(--primary); font-weight: 600; font-size: 12.5px; cursor: pointer; padding: 4px 6px; border-radius: 6px; box-shadow: none; }
.quick-foot button:hover { background: var(--primary-soft); }
.quick-foot span { font-size: 11px; color: var(--muted); }
.quick-box { width: 560px; max-width: calc(100vw - 32px); }
.quick-list { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.quick-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius); }
.quick-row-main { flex: 1; min-width: 0; }
.quick-by { font-size: 11px; color: var(--muted); margin-left: 6px; }
.quick-row-text { font-size: 13px; color: var(--text-2); white-space: pre-wrap; margin-top: 2px; max-height: 60px; overflow: hidden; }
.quick-row-actions { display: flex; gap: 4px; flex-shrink: 0; }
.quick-form { display: flex; flex-direction: column; gap: 8px; }
.quick-form textarea { padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); font: inherit; resize: vertical; }
.quick-form-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- Thanh ghi am ---------- */
.voice-rec-bar {
  display: flex; align-items: center; gap: 12px; margin: 0 16px 16px; padding: 10px 12px 10px 10px;
  border-radius: 999px; background: var(--danger-soft); border: 1px solid rgba(229, 72, 77, .25); flex-shrink: 0;
}
.voice-rec-cancel {
  width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer; background: #fff; color: var(--text-2); font-size: 14px;
}
.voice-rec-cancel:hover { color: var(--danger); }
.voice-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: rec-blink 1s infinite; }
@keyframes rec-blink { 50% { opacity: .25; } }
.voice-rec-time { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--danger); min-width: 38px; }
.voice-rec-label { flex: 1; font-size: 13px; color: var(--text-2); }
.voice-rec-send {
  border: none; border-radius: 999px; padding: 9px 18px; cursor: pointer; font-weight: 600;
  background: var(--grad); color: #fff; box-shadow: var(--glow);
}
