/* ====== CHAT GLOBAL TOASTS ====== */

#chat-notifications-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none; /* só o conteúdo do toast recebe clique */
}

.chat-toast {
  min-width: 260px;
  max-width: 360px;
  background: #0f172a;
  color: #f9fafb;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
  padding: 10px 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  pointer-events: auto;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 13px;
}

.chat-toast-show {
  opacity: 1;
  transform: translateY(0);
}

.chat-toast-content {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.chat-toast-message {
  flex: 1;
}

.chat-toast-title {
  font-weight: 600;
  margin-bottom: 2px;
  font-size: 13px;
}

.chat-toast-close {
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
  transition: color 0.15s ease;
}

.chat-toast-close:hover {
  color: #e5e7eb;
}

/* Variações por tipo */
.chat-toast-info {
  border-left: 3px solid #3b82f6;
}

.chat-toast-success {
  border-left: 3px solid #22c55e;
}

.chat-toast-warning {
  border-left: 3px solid #eab308;
}

.chat-toast-error {
  border-left: 3px solid #ef4444;
}

/* modules/Chat/resources/css/app.css */
.chat-notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: white;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.chat-notification-badge.show {
  display: flex;
}

/* Dark/light se quiser adaptar no futuro
body.dark #chat-notifications-container .chat-toast {
  background: #020617;
}
*/
/* modules/Chat/resources/css/app.css - ADICIONAR */

/* ✅ ESTILOS GLOBAIS PARA SIDEBAR */
#chat-sidebar-container {
  pointer-events: none; /* Permitir cliques através do container */
}

#chat-sidebar-container > * {
  pointer-events: auto; /* Restaurar cliques nos elementos filhos */
}

/* ✅ GARANTIR QUE A SIDEBAR FIQUE ACIMA DE TUDO */
.chat-sidebar {
  z-index: 999999 !important;
}

/* ✅ PREVENIR CONFLITOS COM OUTROS ELEMENTOS */
body.has-chat-sidebar {
  padding-left: 0; /* Não empurrar conteúdo */
}

/* ✅ ANIMAÇÕES SUAVES */
.chat-sidebar * {
  box-sizing: border-box;
}

/* ✅ BADGE NO MENU PRINCIPAL (MANTER COMPATIBILIDADE) */
.chat-notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: white;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.chat-notification-badge.show {
  display: flex;
}

/* ✅ RESPONSIVIDADE GLOBAL */
@media (max-width: 768px) {
  .chat-sidebar {
    --sidebar-width: 280px;
  }
}

@media (max-width: 480px) {
  .chat-sidebar {
    --sidebar-width: calc(100vw - 40px);
  }
}