/* Bottone per aprire la chat (Launcher) */
#aoc-chat-launcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #0073aa;
    /* Colore principale WP, personalizzabile */
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: transform 0.3s ease;
}

#aoc-chat-launcher:hover {
    transform: scale(1.1);
}

/* Contenitore principale della Chat */
#aoc-chat-widget {
    position: fixed;
    bottom: 90px;
    /* Sopra il launcher */
    right: 20px;
    width: 350px;
    height: 500px;
    max-height: 80vh;
    /* Per schermi piccoli */
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: none;
    /* Nascosto di default */
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Intestazione */
.aoc-header {
    background-color: #0073aa;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aoc-header h3 {
    margin: 0;
    font-size: 16px;
    color: white;
}

.aoc-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

/* Area Messaggi */
#aoc-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Stili per i singoli messaggi */
.aoc-message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.aoc-user-msg {
    align-self: flex-end;
    background-color: #0073aa;
    color: white;
    border-bottom-right-radius: 2px;
}

.aoc-bot-msg {
    align-self: flex-start;
    background-color: #e5e5ea;
    color: black;
    border-bottom-left-radius: 2px;
}

/* Area di Input */
.aoc-input-area {
    padding: 10px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    background: white;
}

#aoc-chat-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

#aoc-send-btn {
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#aoc-send-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}