/* conversa_do_chat_topo.css */
.chat-topo-container {
    max-width: 1100px;
    margin: 30px auto;
    background: linear-gradient(145deg, #111, #0a0a0a);
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    position: relative;
    cursor: pointer; /* Muda a seta para a mãozinha */
    transition: all 0.3s ease; /* Suaviza o efeito de passar o mouse */
}

/* Efeito ao passar o mouse */
.chat-topo-container:hover {
    border-color: #f77810;
    box-shadow: 0 0 15px rgba(247, 120, 16, 0.4);
    background: linear-gradient(145deg, #1a1a1a, #111);
}

.chat-topo-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 15px;
    border-right: 2px solid #333;
    z-index: 2;
    background: none;
    white-space: nowrap;
}

.chat-topo-slider {
    flex: 1;
    overflow: hidden;
    position: relative;
    margin-left: 15px;
    height: 45px; 
}

.chat-topo-track {
    display: flex;
    align-items: center;
    height: 100%;
    width: max-content;
    will-change: transform;
}

.chat-topo-track:hover {
    animation-play-state: paused !important; /* Pausa caso o usuário passe o mouse (computador) */
}

.chat-topo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    border-right: 1px solid #444;
    flex-shrink: 0; 
}

.chat-topo-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #f77810;
    flex-shrink: 0;
}

.chat-topo-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chat-topo-user {
    color: #f77810;
    font-size: 13px;
    line-height: 1.2;
}

.chat-topo-text {
    color: #ccc;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Animação Contínua Infinita (Computador) */
@keyframes scrollChatTopo {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* --- MODO CELULAR --- */
@media (max-width: 768px) {
    .chat-topo-container {
        flex-direction: column;
        padding: 10px;
        margin: 20px 10px;
    }
    
    .chat-topo-header {
        border-right: none;
        border-bottom: 1px solid #333;
        padding-right: 0;
        padding-bottom: 8px;
        margin-bottom: 8px;
        width: 100%;
        justify-content: center;
    }
    
    .chat-topo-slider {
        margin-left: 0;
        width: 100%;
        height: 55px;
    }
    
    .chat-topo-item {
        width: 100%; 
        flex: 0 0 100%; 
        border-right: none;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .chat-topo-text {
        white-space: normal; 
        max-width: 100%;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Impede textos enormes no celular (limita em 2 linhas) */
        -webkit-box-orient: vertical;
    }
}