/* Disabilita gli effetti su tutte le immagini */
/*
.et_pb_image.et-waypoint {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
}
*/
.loader {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #555;
    margin: 10px;
    font-style: italic;
}

#gpt-chat {
    width: 100%;
    padding: 0px;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

.chat-box {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    margin-bottom: 10px;
    background: #f7f7f7;
    border-radius: 8px;
}

.user, .assistant, .error {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 6px;
}

.user { background-color: #e0f2ff; }
.assistant { background-color: #d4edda; }
.error { background-color: #fdd; color: red; }

#gpt-input {
    width: 80%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#gpt-submit {
    padding: 8px 15px;
    border-radius: 5px;
    border: none;
    background: #007bff;
    color: #fff;
    cursor: pointer;
}


/* Stile base per il pannello */




/* Stile base per il pannello (completamente nascosto quando chiuso) */
/* Pannello nascosto inizialmente */
/* Pannello nascosto inizialmente */
#gpt-chat-panel {
    position: fixed;
    right: -100%;
    top: 0;
    width: 350px;
    height: 100vh;
    background: #f5f5f5;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    padding: 15px;
    border-left: 2px solid rgba(0, 0, 0, 0.05);
    visibility: hidden;
    opacity: 0;
    z-index: 99999; !important
}

/* Quando il pannello è aperto */
#gpt-chat-panel.open {
    right: 0;
    visibility: visible;
    opacity: 1;
}

/* Linguetta per aprire la chat */
#gpt-chat-tab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 80px;
    background: #0073aa;
    border-radius: 10px 0 0 10px;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* Effetto al passaggio del mouse sulla linguetta */
#gpt-chat-tab:hover {
    background: #005a87;
}

/* Pulsante per aprire la chat */
#gpt-chat-toggle {
    position: fixed;
    right: 15px;
    bottom: 15px;
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease-in-out;
    z-index: 1000;
}

/* Effetto al passaggio del mouse sul pulsante */
#gpt-chat-toggle:hover {
    opacity: 1;
}

/* Pulsante per chiudere la chat */
#gpt-chat-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    align-self: flex-end;
}


/****************************************** riquadro html ****************************************************


/* 🔹 Contenitore della pagina generata */
#gpt-content {
    width: 100%;
    padding: 0px;
    margin: 0;
}


/* 🔹 Contenuto generato */
#gpt-generated-content {
   width: 100%;
   padding: 0px;
   margin: 0;
}
