/**
 * Stile Chatbot PA - Versione Sviluppo
 * Percorso: /pa-smart-chatbot/assets/css/chat-style.css
 */

/* Contenitore principale (Wrapper) */
#pa-chatbot-wrapper {
    position: fixed !important;
    bottom: 25px !important;
    right: 25px !important;
    z-index: 99999999 !important; /* Priorità massima sopra ogni elemento */
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    display: block !important;
}

/* Finestra di Chat */
#pa-chat-window {
    display: none; /* Gestito via JS */
    width: 350px;
    height: 500px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dddddd;
    margin-bottom: 15px;
    position: relative !important;
    z-index: 100000000 !important;
}

/* Bottone di attivazione (Trigger) */
#pa-chat-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #616a97 !important; /* Colore istituzionale */
    color: #ffffff !important;
    border: none !important;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(97, 106, 151, 0.5);
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative !important;
    z-index: 100000000 !important;
}

#pa-chat-trigger:hover {
    transform: scale(1.1);
}

/* Icona Material nel trigger */
#pa-chat-trigger span {
    color: #ffffff !important;
    font-size: 30px !important;
}

/* Bolla messaggio del Bot (AI) */
.pa-msg-bot {
    animation: paFadeIn 0.3s ease-in-out;
    background: #eeeeee;
    padding: 10px 14px;
    border-radius: 15px 15px 15px 2px;
    align-self: flex-start;
    max-width: 85%;
    font-size: 14px;
    color: #333333;
    line-height: 1.4;
}

/* Bolla messaggio dell'Utente */
.pa-msg-user {
    animation: paFadeIn 0.3s ease-in-out;
    background: #616a97; /* Colore pulsanti */
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 15px 15px 2px 15px;
    align-self: flex-end;
    max-width: 85%;
    font-size: 14px;
    line-height: 1.4;
}

/* Animazione comparsa messaggi */
@keyframes paFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Personalizzazione Scrollbar Area Messaggi */
#pa-chat-messages::-webkit-scrollbar {
    width: 4px;
}

#pa-chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#pa-chat-messages::-webkit-scrollbar-thumb {
    background: #616a97;
    border-radius: 10px;
}

/* Focus sull'input di testo */
#pa-chat-input:focus {
    border-color: #616a97 !important;
    box-shadow: 0 0 5px rgba(97, 106, 151, 0.3) !important;
}