/* ========================================================================== CONVERSA COM O CARINHA · CHAT MODERNO IA ========================================================================== */ /* Workspace sticky de 2 colunas: rosto fixo + chat rolável */ .conversa-workspace { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 8px; } .conversa-sticky-col { position: sticky; top: 84px; z-index: 40; display: flex; flex-direction: column; gap: 18px; max-height: calc(100vh - 104px); overflow-y: auto; padding-right: 4px; } .conversa-sticky-col::-webkit-scrollbar { width: 4px; } .conversa-sticky-col::-webkit-scrollbar-thumb { background: rgba(92,214,255,0.3); border-radius: 4px; } .conversa-chat-col { min-width: 0; display: flex; flex-direction: column; } .btn-gesto-rapido { flex: 1 1 calc(50% - 4px); min-width: 0; } @media (max-width: 900px) { .conversa-workspace { grid-template-columns: 1fr; } .conversa-sticky-col { position: static; } } .chat-card { margin: 0; display: flex; flex-direction: column; gap: 16px; } .chat-header-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; border-bottom: 1px solid var(--borda); padding-bottom: 14px; } .chat-box { min-height: 380px; max-height: 520px; overflow-y: auto; padding: 20px; background: rgba(6, 12, 22, 0.75); border: 1px solid var(--borda); border-radius: var(--raio-lg); display: flex; flex-direction: column; gap: 16px; scroll-behavior: smooth; box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4); } .chat-row { display: flex; gap: 12px; max-width: 82%; animation: chatMsgAnim 0.25s cubic-bezier(0.16, 1, 0.3, 1); } @keyframes chatMsgAnim { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } } .chat-row.user { align-self: flex-end; flex-direction: row-reverse; } .chat-row.assistant { align-self: flex-start; } .chat-avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; flex-shrink: 0; } .chat-row.assistant .chat-avatar { background: linear-gradient(135deg, #10263f 0%, #1e4b78 100%); border: 1px solid var(--ciano-brilho, #5cd6ff); box-shadow: 0 0 12px var(--ciano-glow); } .chat-row.user .chat-avatar { background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%); border: 1px solid rgba(255, 255, 255, 0.2); } .chat-content { display: flex; flex-direction: column; gap: 6px; } .chat-balloon { padding: 12px 18px; border-radius: 16px; font-size: 14.5px; line-height: 1.55; word-break: break-word; } .chat-row.assistant .chat-balloon { background: rgba(16, 28, 46, 0.9); border: 1px solid rgba(92, 214, 255, 0.3); color: #f1f7fd; border-top-left-radius: 4px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35); } .chat-row.user .chat-balloon { background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%); color: #ffffff; border-top-right-radius: 4px; box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35); } .chat-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .chat-gesto-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 12px; background: rgba(92, 214, 255, 0.12); color: var(--ciano); border: 1px solid rgba(92, 214, 255, 0.3); cursor: pointer; transition: all 0.16s ease; } .chat-gesto-badge:hover { background: rgba(92, 214, 255, 0.25); transform: scale(1.05); } .chat-speak-btn { background: transparent; border: none; padding: 2px 6px; font-size: 13px; cursor: pointer; opacity: 0.7; color: var(--fraco); box-shadow: none; } .chat-speak-btn:hover { opacity: 1; color: var(--ciano); background: transparent; transform: none; } /* Digitando / Pensando */ .chat-typing { display: flex; align-items: center; gap: 6px; padding: 10px 16px; background: rgba(16, 28, 46, 0.8); border: 1px solid rgba(92, 214, 255, 0.2); border-radius: 16px; width: fit-content; color: var(--ciano); font-size: 13px; font-style: italic; } .dot-pulse { width: 6px; height: 6px; background: var(--ciano); border-radius: 50%; animation: dotPulseAnim 1.2s infinite ease-in-out; } .dot-pulse:nth-child(2) { animation-delay: 0.2s; } .dot-pulse:nth-child(3) { animation-delay: 0.4s; } @keyframes dotPulseAnim { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; } 40% { transform: scale(1.1); opacity: 1; } } /* Sugestões de Conversa */ .chat-suggestions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; } .suggestion-chip { padding: 6px 14px; border-radius: 20px; background: rgba(18, 34, 54, 0.6); border: 1px solid var(--borda); color: var(--texto-medio); font-size: 12.5px; cursor: pointer; transition: all 0.16s ease; } .suggestion-chip:hover { border-color: var(--ciano); color: #ffffff; background: rgba(30, 56, 88, 0.85); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(92, 214, 255, 0.2); } /* Barra de Entrada */ .chat-input-container { display: flex; gap: 10px; align-items: center; position: relative; } .chat-input-container input { margin: 0 !important; padding-right: 48px; border-radius: var(--raio-md); font-size: 15px; } .btn-mic { width: 44px; height: 44px; padding: 0; border-radius: 12px; display: grid; place-items: center; font-size: 18px; flex-shrink: 0; background: rgba(22, 38, 60, 0.8); border: 1px solid var(--borda); color: var(--texto-medio); } .btn-mic:hover { border-color: var(--ciano); color: var(--ciano); } .btn-mic.recording { background: var(--vermelho); border-color: var(--vermelho); color: #ffffff; animation: micPulse 1s infinite alternate; box-shadow: 0 0 16px rgba(244, 63, 94, 0.6); } @keyframes micPulse { from { transform: scale(1); } to { transform: scale(1.08); } } /* Lembranças / Memória */ .memory-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: rgba(12, 22, 36, 0.6); border: 1px solid var(--borda); border-radius: var(--raio-sm); margin-bottom: 8px; transition: border-color 0.16s ease; } .memory-card:hover { border-color: rgba(92, 214, 255, 0.4); }