/* --- ADMIN STYLES --- */
.artwork-ai-box { position: relative; padding: 5px; }
.artwork-ai-box textarea { background: #fafafa; border: 1px solid #ddd; }
#artwork-instructions { min-height: 80px; }
#artwork-loading-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(5px); z-index: 999999; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.artwork-loader-content { background: #fff; padding: 40px 60px; border-radius: 12px; box-shadow: 0 15px 40px rgba(0,0,0,0.15); border: 1px solid #e0e0e0; }
.artwork-spinner { width: 60px; height: 60px; border: 6px solid #f3f3f3; border-top: 6px solid #232323; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 20px auto; }
.artwork-loading-text { font-size: 20px; font-weight: 700; color: #232323; margin-bottom: 8px; font-family: sans-serif; }
.artwork-loading-subtext { font-size: 15px; color: #646970; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- SIDEBAR STYLES --- */
.artwork-overlay { display: none; position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.5); z-index: 9998; }
.artwork-sidebar { position: fixed; top: 0; right: -400px; width: 400px; height: 100%; background: #fff; z-index: 9999; box-shadow: -2px 0 5px rgba(0,0,0,0.1); padding: 30px; transition: right 0.3s ease; overflow-y: auto; }
.artwork-sidebar.active { right: 0; }
#artwork-close-sidebar { float: right; font-size: 30px; line-height: 20px; border: none; background: none; cursor: pointer; color: #333; }

/* --- FAQ ACCORDION STYLES --- */
.artwork-accordion details { margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 15px; }

/* Summary Flex Layout */
.artwork-accordion summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    font-size: 16px;
    color: #2c3338;
    outline: none;
    display: flex; /* Flex per allineare testo e freccia */
    justify-content: space-between;
    align-items: center;
}
.artwork-accordion summary::-webkit-details-marker { display: none; }

/* Logica Freccia:
   Richiesta: Guardare in GIÙ quando APERTO, in SU quando CHIUSO.
   L'icona di default (chevron-down) punta in GIÙ.
*/

/* Stato CHIUSO: Ruota di 180 gradi (Punta in SU) */
.artwork-accordion details:not([open]) .artwork-arrow-icon {
    transform: rotate(180deg);
}

/* Stato APERTO: Default (Punta in GIÙ) */
.artwork-accordion details[open] .artwork-arrow-icon {
    transform: rotate(0deg);
}

/* Transizione */
.artwork-arrow-icon {
    transition: transform 0.3s ease;
    color: #888;
}

.details-content { margin-top: 10px; font-size: 15px; color: #555; line-height: 1.6; }

/* --- FIXED BUTTONS STYLE (DARK MODE #232323) --- */
.artwork-floating-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9990;
    width: auto;
    max-width: 90%;
    z-index: 9999999;
}

.artwork-bar-inner {
    display: flex;
    gap: 15px;
    /* Nessuno sfondo, nessuna ombra sul container, solo bottoni */
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
    border: 1px solid #EAEAEA;
    border-radius: 5px;
    background-color: #FFFFFF;
}

/* Stile bottoni Salient forzato a #232323 */
.artwork-floating-bar .art-btn {
    white-space: nowrap;
    font-weight: bold;
    padding: 12px 20px !important;
    border-radius: 30px; /* Pill shape */
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 400;
    /* Colore richiesto */
    background-color: transparent !important;
    color: #232323 !important;
    border: none !important;
    text-decoration: none !important
}

.artwork-floating-bar .art-btn:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    background-color: #000 !important; */
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.0) !important;
}

/* Icona nei bottoni */
.artwork-floating-bar .art-btn span {
    width: auto !important;
}
.artwork-floating-bar .art-btn i {
    font-size: 14px;
    color: #232323 !important;
}

@media (max-width: 600px) {
    .artwork-bar-inner { gap: 5px; }
    .artwork-floating-bar .art-btn { padding: 10px 10px;  }
}
