/* CHAT STYLES */
.chat-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 300px;
    height: 200px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #333;
    border-radius: 10px;
    font-family: Arial, sans-serif;
    color: white;
    display: none;
    flex-direction: column;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    font-size: 12px;
    line-height: 1.4;
}

.chat-input-container {
    display: flex;
    padding: 5px;
    border-top: 1px solid #444;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #555;
    border-radius: 5px;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
}

.chat-input:focus {
    outline: none;
    border-color: #007bff;
}

.chat-message {
    margin-bottom: 5px;
    padding: 3px 5px;
    border-radius: 3px;
}

.chat-message.player1 { background: rgba(255, 0, 0, 0.2); }
.chat-message.player2 { background: rgba(0, 255, 0, 0.2); }
.chat-message.player3 { background: rgba(0, 0, 255, 0.2); }
.chat-message.player4 { background: rgba(255, 255, 0, 0.2); }

.chat-timestamp {
    font-size: 10px;
    opacity: 0.7;
    margin-right: 5px;
}

.chat-player {
    font-weight: bold;
}

.chat-player.player1 { color: #ff4444; }
.chat-player.player2 { color: #44ff44; }
.chat-player.player3 { color: #4444ff; }
.chat-player.player4 { color: #ffff44; }


.chat-mobile-btn {
    position: fixed;
    bottom: 20px;
    right: 70px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 1000;
    border: 2px solid #333;
}

.chat-mobile-btn {
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 1000;
    border: 2px solid #333;
    transition: all 0.3s ease; /* Transição suave */
}

/* Estilo quando há nova mensagem */
.chat-mobile-btn.notificacao {
    background: rgba(255, 0, 0, 0.8) !important;
    border: 2px solid #ff4444 !important;
    animation: pulse 1.5s infinite;
}

/* Animação de pulsar para a notificação */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Ajuste para mobile */
@media (max-width: 768px) {
    .chat-container {
        width: 40%;
        height: 180px;
        left: 20px;
        bottom: 80px;
        transition: all 0.3s ease; /* Adiciona transição suave */
    }

    .chat-mobile-btn {
    top: 10px;
    bottom: auto !important; /* Remove o bottom do desktop */
    right: 25%;
    
}

}

