/* ===================================================
   MESSAGES.CSS — Chat style WhatsApp
   =================================================== */

/* Full-height layout — compense le padding de dash-content */
.chat-layout {
  display: flex;
  margin: -44px -52px;
  height: calc(100vh - 72px);
  overflow: hidden;
}

/* ============================================
   SIDEBAR CONVERSATIONS
   ============================================ */
.chat-sidebar {
  width: 300px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-sidebar-header {
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.chat-sidebar-title {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted);
}
.chat-new-btn {
  font-size: .75rem; font-weight: 600; color: var(--primary);
  background: rgba(94,74,208,.08); border: none;
  padding: 5px 12px; border-radius: 50px; cursor: pointer;
  transition: background .14s ease;
}
.chat-new-btn:hover { background: rgba(94,74,208,.15); }

.chat-conv-list { flex: 1; overflow-y: auto; }

.chat-conv-item {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,.04);
  transition: background .11s ease;
  position: relative;
}
.chat-conv-item:hover   { background: rgba(0,0,0,.025); }
.chat-conv-item.active  { background: rgba(94,74,208,.06); }
.chat-conv-item--pinned { border-bottom: 1px solid var(--border); }
.chat-conv-pin          { font-size: .7rem; opacity: .5; margin-left: 3px; }
.chat-conv-item.active::before {
  content: ''; position: absolute; left: 0; top: 10px; bottom: 10px;
  width: 3px; background: var(--primary); border-radius: 0 3px 3px 0;
}

.chat-conv-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #8a6fd4 100%);
  color: #fff; font-size: .88rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-conv-info { flex: 1; min-width: 0; }
.chat-conv-name {
  font-size: .87rem; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3;
}
.chat-conv-preview {
  font-size: .76rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px; line-height: 1.4;
}
.chat-conv-meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  flex-shrink: 0;
}
.chat-conv-time {
  font-size: .68rem; color: var(--muted); white-space: nowrap;
}
.chat-conv-badge {
  background: var(--primary); color: #fff;
  font-size: .65rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 50px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}
.chat-conv-preview--unread {
  color: var(--text); font-weight: 600;
}

/* ============================================
   MAIN CHAT AREA
   ============================================ */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #f0eee9;
  overflow: hidden;
  position: relative;
}

/* ---- Bouton scroll vers le bas ---- */
.chat-scroll-btn {
  position: absolute; bottom: 72px; right: 18px; z-index: 10;
  background: #fff; border: none; cursor: pointer;
  border-radius: 50px; padding: 7px 13px 7px 9px;
  display: none; align-items: center; gap: 5px;
  box-shadow: 0 2px 14px rgba(0,0,0,.16);
  font-size: .78rem; font-weight: 600; color: var(--primary);
  transition: box-shadow .14s ease, transform .1s ease;
}
.chat-scroll-btn:hover { box-shadow: 0 4px 18px rgba(0,0,0,.22); transform: translateY(-1px); }
.chat-scroll-btn svg { width: 15px; height: 15px; }
.chat-scroll-count {
  background: var(--primary); color: #fff;
  border-radius: 50px; font-size: .63rem; font-weight: 700;
  padding: 1px 6px; min-width: 16px; text-align: center;
}

/* ---- Aperçu image avant envoi ---- */
.chat-preview-overlay {
  position: fixed; inset: 0; z-index: 9100;
  background: rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
.chat-preview-modal {
  background: #fff; border-radius: 18px;
  width: min(480px, 92vw);
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  display: flex; flex-direction: column;
  max-height: 88vh; overflow: hidden;
}
.chat-preview-header {
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.chat-preview-title { font-size: .9rem; font-weight: 700; color: var(--text); }
.chat-preview-body {
  padding: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  overflow-y: auto; flex: 1;
}
.chat-preview-img {
  max-width: 100%; max-height: 360px;
  border-radius: 10px; object-fit: contain;
}
.chat-preview-filename {
  font-size: .78rem; color: var(--muted);
  text-align: center; word-break: break-all;
}

/* Placeholder (aucune conv sélectionnée) */
.chat-placeholder {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
}
.chat-placeholder-icon svg { width: 52px; height: 52px; color: var(--muted); opacity: .35; }
.chat-placeholder-text { font-size: .88rem; color: var(--muted); font-weight: 500; }

/* ---- Header de la conversation ---- */
.chat-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 12px 18px;
  display: flex; align-items: center; gap: 11px;
  flex-shrink: 0;
}
.chat-back-btn {
  display: none;
  background: none; border: none; cursor: pointer;
  color: var(--primary); padding: 4px; border-radius: 8px;
  flex-shrink: 0; transition: background .13s ease;
}
.chat-back-btn:hover { background: rgba(94,74,208,.1); }
.chat-back-btn svg { width: 20px; height: 20px; display: block; }
.chat-header-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #8a6fd4 100%);
  color: #fff; font-size: .8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-header-info { flex: 1; min-width: 0; }
.chat-header-name { font-size: .9rem; font-weight: 700; color: var(--text); line-height: 1.25; }
.chat-header-sub  { font-size: .73rem; color: var(--muted); margin-top: 1px; }

/* ---- Zone de messages ---- */
.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 2px;
}

/* ---- Séparateur de date ---- */
.chat-date-sep {
  display: flex; align-items: center; justify-content: center;
  margin: 14px 0 10px;
}
.chat-date-sep span {
  font-size: .7rem; font-weight: 600; color: var(--muted);
  background: rgba(0,0,0,.06); padding: 3px 12px; border-radius: 50px;
}

/* ---- Bulles ---- */
.chat-msg {
  display: flex; align-items: flex-end; gap: 7px;
  margin-bottom: 1px;
}
.chat-msg--grouped { margin-top: 1px; }
.chat-msg--sent { flex-direction: row-reverse; }

.chat-msg-avatar-sm {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #4a4270, #6d5ea8);
  color: #fff; font-size: .68rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-bottom: 18px;
}
.chat-msg-avatar-gap { width: 26px; flex-shrink: 0; }
.chat-msg-body { flex: 1; min-width: 0; }

.chat-msg-sender {
  font-size: .7rem; color: var(--muted); font-weight: 600;
  margin-bottom: 3px; padding-left: 2px;
}

.chat-bubble {
  max-width: 62%;
  padding: 9px 13px;
  border-radius: 18px;
  word-break: break-word;
  position: relative;
}
.chat-msg--received .chat-bubble {
  background: #fff;
  border-radius: 4px 18px 18px 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,.07);
}
.chat-msg--sent .chat-bubble {
  background: var(--primary);
  border-radius: 18px 18px 4px 18px;
}

.chat-bubble-text {
  font-size: .87rem; line-height: 1.55; color: var(--text);
}
.chat-msg--sent .chat-bubble-text { color: #fff; }

.chat-msg-time {
  display: block; font-size: .63rem;
  margin-top: 4px; opacity: .5; text-align: right;
}
.chat-msg--received .chat-msg-time { color: var(--muted); }
.chat-msg--sent .chat-msg-time { color: rgba(255,255,255,.75); }

/* Image dans le chat */
.chat-bubble-image {
  max-width: 220px; max-height: 220px;
  border-radius: 10px; display: block;
  cursor: zoom-in;
}

/* Fichier joint */
.chat-bubble-file {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; color: inherit; padding: 2px 0;
}
.chat-bubble-file svg { width: 20px; height: 20px; flex-shrink: 0; }
.chat-bubble-file strong { display: block; font-size: .84rem; font-weight: 600; }
.chat-bubble-file small  { font-size: .7rem; opacity: .6; }
.chat-msg--sent .chat-bubble-file { color: #fff; }

/* ---- Barre de saisie ---- */
.chat-input-area {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 9px;
  flex-shrink: 0;
}

.chat-attach-btn {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--muted); flex-shrink: 0;
  transition: background .13s ease, color .13s ease;
}
.chat-attach-btn:hover { background: rgba(0,0,0,.06); color: var(--text); }
.chat-attach-btn svg { width: 18px; height: 18px; }

.chat-input {
  flex: 1;
  background: #f5f4f1;
  border: 1px solid transparent;
  border-radius: 22px;
  padding: 9px 16px;
  font-size: .87rem; color: var(--text);
  font-family: var(--font-sans);
  outline: none;
  transition: border .14s ease, background .14s ease;
}
.chat-input:focus { border-color: rgba(94,74,208,.25); background: #fff; }
.chat-input::placeholder { color: var(--muted); }

.chat-send-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: background .13s ease, transform .1s ease;
}
.chat-send-btn:hover  { background: #4d3ab8; }
.chat-send-btn:active { transform: scale(.93); }
.chat-send-btn svg { width: 15px; height: 15px; color: #fff; margin-left: 1px; }

/* ---- États (loading, vide…) ---- */
.chat-state-msg {
  padding: 24px; text-align: center;
  font-size: .84rem; color: var(--muted);
}
.chat-state-msg--empty { padding-top: 48px; }

/* ============================================
   MODAL NOUVEAU GROUPE (admin)
   ============================================ */
.chat-modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.chat-modal {
  background: #fff; border-radius: 18px;
  width: min(480px, 92vw);
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
  display: flex; flex-direction: column;
  max-height: 80vh; overflow: hidden;
}
.chat-modal-header {
  padding: 20px 24px 16px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.chat-modal-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.chat-modal-close {
  background: none; border: none; font-size: 1rem;
  color: var(--muted); cursor: pointer; padding: 4px;
  transition: color .14s ease;
}
.chat-modal-close:hover { color: var(--text); }

.chat-modal-body { padding: 20px 24px; overflow-y: auto; flex: 1; }
.chat-modal-label {
  display: block; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); margin-bottom: 8px;
}
.chat-modal-input {
  width: 100%;
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 10px 14px; font-size: .9rem; font-family: var(--font-sans);
  color: var(--text); outline: none;
  transition: border .14s ease;
  box-sizing: border-box;
}
.chat-modal-input:focus { border-color: var(--primary); }

.chat-modal-users {
  display: flex; flex-direction: column; gap: 4px;
  max-height: 220px; overflow-y: auto;
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 6px;
}
.chat-modal-user {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  cursor: pointer; transition: background .12s ease;
}
.chat-modal-user:hover { background: rgba(0,0,0,.04); }
.chat-modal-user input[type=checkbox] { accent-color: var(--primary); width: 15px; height: 15px; }
.chat-modal-user-name { flex: 1; font-size: .88rem; font-weight: 500; color: var(--text); }
.chat-modal-user-role {
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--primary);
  background: rgba(94,74,208,.08); padding: 2px 8px; border-radius: 50px;
}

.chat-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 10px;
  flex-shrink: 0;
}
.chat-modal-cancel {
  padding: 9px 20px; border-radius: 10px;
  background: none; border: 1.5px solid var(--border);
  font-size: .88rem; font-weight: 600; color: var(--muted);
  cursor: pointer; transition: border .14s ease;
}
.chat-modal-cancel:hover { border-color: var(--text); color: var(--text); }
.chat-modal-submit {
  padding: 9px 20px; border-radius: 10px;
  background: var(--primary); border: none;
  font-size: .88rem; font-weight: 600; color: #fff;
  cursor: pointer; transition: background .14s ease;
}
.chat-modal-submit:hover    { background: #4d3ab8; }
.chat-modal-submit:disabled { opacity: .6; cursor: default; }

/* Vidéo dans le chat */
.chat-bubble-video {
  display: block;
  max-width: 260px;
  max-height: 200px;
  border-radius: 10px;
  background: #000;
  outline: none;
}
.chat-bubble-video-name {
  font-size: .7rem; opacity: .65; margin-top: 4px;
  word-break: break-all;
}
.chat-msg--sent .chat-bubble-video-name { color: rgba(255,255,255,.8); }

/* Indicateur "Vu" (Instagram-style) */
.chat-seen-vu {
  text-align: right;
  font-size: .68rem;
  color: var(--primary);
  font-weight: 600;
  padding-right: 6px;
  margin-top: -2px;
  margin-bottom: 4px;
}

/* ============================================
   BOUTONS APPEL (header conversation)
   ============================================ */
.chat-call-actions {
  margin-left: auto;
  display: flex; gap: 6px; flex-shrink: 0;
}
.chat-call-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(94,74,208,.08); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--primary); flex-shrink: 0;
  transition: background .13s ease, transform .1s ease;
}
.chat-call-btn:hover  { background: rgba(94,74,208,.18); }
.chat-call-btn:active { transform: scale(.9); }
.chat-call-btn svg { width: 17px; height: 17px; display: block; }

/* ---- Événement d'appel dans le fil de messages ---- */
.chat-call-event {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 10px auto;
  padding: 6px 18px;
  background: rgba(0,0,0,.055);
  border-radius: 50px;
  font-size: .75rem; color: var(--muted); font-weight: 500;
  max-width: 300px; white-space: nowrap;
}
.chat-call-event--missed { color: #e53935; background: rgba(229,57,53,.08); }

/* ============================================
   APPEL — OVERLAY PLEIN ÉCRAN
   ============================================ */
.call-overlay {
  position: fixed; inset: 0; z-index: 9500;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #0d0d0d;
  font-family: var(--font-sans);
}

/* ---- En cours de sonnerie ---- */
.call-overlay--calling {
  background: linear-gradient(160deg, #1a1035 0%, #0d0d1a 100%);
}
.call-calling-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.call-avatar-ring {
  position: relative;
  width: 108px; height: 108px;
  display: flex; align-items: center; justify-content: center;
}
.call-avatar-ring::before,
.call-avatar-ring::after {
  content: '';
  position: absolute; inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(94,74,208,.3);
  animation: callPulse 2s ease-out infinite;
}
.call-avatar-ring::after { animation-delay: .7s; }
@keyframes callPulse {
  0%   { transform: scale(.9); opacity: .8; }
  100% { transform: scale(1.4); opacity: 0; }
}
.call-avatar {
  width: 90px; height: 90px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #8a6fd4 100%);
  color: #fff; font-size: 2.2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.call-avatar--lg {
  width: 100px; height: 100px;
  font-size: 2.5rem;
}
.call-calling-name {
  color: #fff; font-size: 1.35rem; font-weight: 700; margin-top: 8px;
}
.call-calling-status {
  color: rgba(255,255,255,.55); font-size: .88rem;
}
.call-waves {
  display: flex; gap: 6px; align-items: center; height: 20px; margin-top: 4px;
}
.call-waves span {
  width: 4px; border-radius: 4px;
  background: rgba(94,74,208,.6);
  animation: callWave 1.1s ease-in-out infinite;
}
.call-waves span:nth-child(1) { animation-delay: 0s;    height: 8px; }
.call-waves span:nth-child(2) { animation-delay: .18s;  height: 16px; }
.call-waves span:nth-child(3) { animation-delay: .36s;  height: 8px; }
@keyframes callWave {
  0%, 100% { transform: scaleY(1); }
  50%       { transform: scaleY(2); opacity: .9; }
}
.call-end-btn {
  margin-top: 28px;
  width: 64px; height: 64px; border-radius: 50%;
  background: #e53935; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: background .15s ease, transform .1s ease;
  box-shadow: 0 4px 20px rgba(229,57,53,.45);
}
.call-end-btn:hover  { background: #c62828; }
.call-end-btn:active { transform: scale(.92); }
.call-end-btn svg { width: 26px; height: 26px; transform: rotate(135deg); }

/* ---- Appel connecté ---- */
.call-overlay--active { background: #000; }

/* Mode audio : avatar centré */
.call-audio-screen {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  z-index: 1;
}
.call-audio-name  { color: #fff; font-size: 1.4rem; font-weight: 700; }
.call-audio-label { color: rgba(255,255,255,.5); font-size: .84rem; }

.call-remote-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.call-remote-placeholder {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #1a1035, #0d0d1a);
}

.call-local-video {
  position: absolute;
  bottom: 110px; right: 20px; z-index: 10;
  width: 110px; height: 80px;
  border-radius: 12px;
  object-fit: cover;
  background: #111;
  border: 2px solid rgba(255,255,255,.15);
  box-shadow: 0 4px 18px rgba(0,0,0,.5);
  transition: opacity .2s ease;
}

.call-topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  padding: 20px 24px 14px;
  background: linear-gradient(to bottom, rgba(0,0,0,.7) 0%, transparent 100%);
  display: flex; align-items: center; gap: 12px;
}
.call-topbar-name  { color: #fff; font-size: 1rem; font-weight: 700; }
.call-topbar-timer { color: rgba(255,255,255,.75); font-size: .84rem; font-variant-numeric: tabular-nums; }
.call-status-msg   { color: rgba(255,255,255,.6); font-size: .8rem; }

.call-controls {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 20;
  padding: 20px 0 36px;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%);
  display: flex; align-items: center; justify-content: center; gap: 20px;
}

.call-ctrl-btn {
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: none;
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .14s ease, transform .1s ease;
  backdrop-filter: blur(6px);
}
.call-ctrl-btn:hover  { background: rgba(255,255,255,.25); }
.call-ctrl-btn:active { transform: scale(.9); }
.call-ctrl-btn svg { width: 22px; height: 22px; }

/* Slash dans les icônes micro/cam (caché par défaut) */
.call-ctrl-slash { display: none; }
.call-ctrl--muted .call-ctrl-slash { display: block; }
.call-ctrl--muted { background: rgba(255,255,255,.35); }

.call-ctrl-btn--end {
  background: #e53935;
  box-shadow: 0 4px 18px rgba(229,57,53,.4);
}
.call-ctrl-btn--end:hover { background: #c62828; }
.call-ctrl-btn--end svg { transform: rotate(135deg); }

/* ============================================
   APPEL — NOTIFICATION ENTRANT
   ============================================ */
.call-incoming {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 9600;
  background: #1c1c2e;
  border-radius: 20px;
  padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
  min-width: 300px; max-width: 420px;
  animation: callSlideUp .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes callSlideUp {
  from { transform: translateX(-50%) translateY(30px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}
.call-incoming-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #8a6fd4);
  color: #fff; font-size: 1.1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.call-incoming-info { flex: 1; min-width: 0; }
.call-incoming-name  { color: #fff; font-size: .95rem; font-weight: 700; }
.call-incoming-label { color: rgba(255,255,255,.5); font-size: .76rem; margin-top: 2px; }
.call-incoming-btns  { display: flex; gap: 10px; }
.call-incoming-reject,
.call-incoming-accept {
  width: 44px; height: 44px; border-radius: 50%;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .1s ease;
}
.call-incoming-reject:active,
.call-incoming-accept:active { transform: scale(.9); }
.call-incoming-reject { background: #e53935; }
.call-incoming-accept { background: #43a047; }
.call-incoming-reject svg,
.call-incoming-accept svg { width: 20px; height: 20px; fill: #fff; }
.call-incoming-reject svg { transform: rotate(135deg); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .chat-layout { margin: -36px; }
}
@media (max-width: 768px) {
  .chat-layout { margin: -28px -20px; }
  .chat-sidebar { width: 100%; }
  .chat-main { display: none; }
  .chat-layout.conv-open .chat-sidebar { display: none; }
  .chat-layout.conv-open .chat-main    { display: flex; flex: 1; }
  .chat-back-btn { display: flex; }
}
