diff --git a/src/public/chat.html b/src/public/chat.html index 9fd2ca9..4899737 100644 --- a/src/public/chat.html +++ b/src/public/chat.html @@ -594,6 +594,35 @@ body { background:#f3f4f6; display:flex; height:100vh; overflow:hidden; } } .empty-state .icon { font-size: 52px; opacity: 0.45; } .empty-state p { font-size: 15px; color: #6b7280; } + +/* Botões só do mobile (voltar / info) */ +.mobile-only { display: none; } + +/* ===== RESPONSIVO: navegação de painel único (lista → conversa → info) ===== */ +@media (max-width: 768px) { + .sidebar-left { width: 100%; } + .chat-center { display: none; } + + /* Quando uma conversa está aberta, mostra o chat e esconde a lista */ + body.chat-aberto .sidebar-left { display: none; } + body.chat-aberto .chat-center { display: flex; } + + /* Painel de informações vira overlay deslizante (oculto por padrão) */ + .sidebar-right { + position: fixed; + top: 0; right: 0; bottom: 0; + width: 88%; max-width: 340px; + z-index: 1200; + box-shadow: -4px 0 24px rgba(0,0,0,0.28); + display: none !important; + } + body.info-aberto .sidebar-right { display: flex !important; } + + .mobile-only { display: inline-flex !important; align-items: center; justify-content: center; } + + .chat-header { gap: 8px; } + .chat-header .info h3 { font-size: 14px; } +}