/* Estilos para o novo seletor de emojis */

/* Container principal do seletor */
.emoji-selector {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 10px;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    font-family: Arial, sans-serif;
}

/* Abas dos grupos de emoji */
.emoji-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
}

.emoji-tab {
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.emoji-tab:hover {
    background: #f9f9f9;
}

/* Grupos de emoji */
.emoji-group {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
}

/* Botões de emoji individuais */
.emoji-item {
    aspect-ratio: 1/1;
    font-size: 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.emoji-item:hover {
    background: #f0f0f0;
}

/* Botão de emoji na área de entrada */
.emoji-btn {
    margin-right: 8px;
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}

.emoji-btn:hover {
    background: #f0f0f0;
}

/* Ajustes para mobile */
@media (max-width: 768px) {
    .emoji-selector {
        position: fixed !important;
        bottom: 50% !important;
        left: 5% !important;
        transform: translateY(50%) !important;
        width: 90% !important;
        max-width: 350px !important;
        max-height: 300px !important;
        z-index: 9999 !important;
    }
    
    .emoji-group {
        grid-template-columns: repeat(6, 1fr) !important;
    }
    
    .emoji-item {
        font-size: 18px !important;
    }
    
    .chat-input-area {
        position: relative;
        width: 100%;
    }
    
    /* Corrigir o bug da caixa por trás do campo nome */
    .chat-name-input, 
    input[name="chat_name"] {
        background: transparent !important;
        position: relative !important;
        z-index: 2 !important;
    }
    
    /* Corrigir espaçamento e aparência */
    .chat-box {
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
}