/* assistant.css versione 2bis */

/* Toggle Button - posizione dinamica da JS */
#chat-toggle {
    position: fixed;
    bottom: 20px;
    left: auto;
    right: 20px;
    background: #333;
    color: #fff;
    padding: 12px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-family: "Helvetica Neue", Arial, sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

/* Contenitore chat */
#chat-box {
    position: fixed;
    bottom: 80px;
    background: #fefefe;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    font-family: "Helvetica Neue", Arial, sans-serif;
    z-index: 9999;
    /* RIMOSSI width e max-height statici */
    /* width e height saranno settati da JS */
}

/* Header */
#chat-header {
    background: #444;
    color: #fff;
    padding: 12px;
    font-weight: bold;
    font-size: 16px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* Area messaggi */
#chat-log {
    padding: 12px;
    overflow-y: auto;
    background: #fafafa;
    font-size: 14px;
    line-height: 1.5;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* Messaggi utente */
#chat-log .user {
    text-align: right;
    margin-bottom: 10px;
}

#chat-log .user strong {
    color: #1a73e8;
}

/* Messaggi bot */
#chat-log .bot {
    text-align: left;
    margin-bottom: 14px;
}

/* Box visuale del messaggio bot */
#chat-log .bot-box {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    display: inline-block;
    max-width: 100%;
}

/* Link nei messaggi */
#chat-log a {
    color: #1a73e8;
    text-decoration: underline;
}

/* Input + Bottone */
#chat-input-wrapper {
    display: flex;
    border-top: 1px solid #ddd;
    height: 48px;
}

/* Campo input */
#user-input {
    flex: 1;
    width: 100%;
    padding: 10px;
    border: none;
    font-size: 14px;
    border-radius: 0 0 0 10px;
    outline: none;
    resize: none;
}

/* Bottone invio */
#send-btn {
    padding: 0 20px;
    background: #1a73e8;
    color: #fff;
    border: none;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    border-radius: 0 0 10px 0;
}
