/* File: project/static/css/global_modals.css
    Descrizione: Stili universali per i modali di conferma (AppUtils).
    Gestisce le varianti Blu (Info) e Rosso (Pericolo/Eliminazione).
    Utilizza l'animazione modalPopIn per coerenza con l'editor preventivi.
*/

/* --- 1. OVERLAY (Sfondo oscurato) --- */
.gm-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

/* --- 2. BOX MODALE --- */
.gm-confirm-box {
    background: #fff;
    width: 95%;
    max-width: 450px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    overflow: hidden;
    /* Animazione Pop-In fluida */
    animation: modalPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* --- 3. HEADER & ICONA --- */
.gm-confirm-header {
    color: white;
    padding: 25px;
    text-align: center;
}

/* Varianti Colore */
.gm-confirm-header.danger { background: linear-gradient(135deg, #dc3545, #c82333); }
.gm-confirm-header.info { background: linear-gradient(135deg, #3498db, #2980b9); }

.gm-icon-wrapper {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.gm-confirm-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
}

/* --- 4. CORPO DEL MESSAGGIO --- */
.gm-confirm-body {
    padding: 30px 20px;
    text-align: center;
    color: #333;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* --- 5. FOOTER & BOTTONI --- */
.gm-confirm-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.gm-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
}

.gm-btn:active { transform: scale(0.95); }
.gm-btn:hover { opacity: 0.9; }

/* Colori Bottoni */
.gm-btn-secondary { background: #e9ecef; color: #495057; }
.gm-btn-danger { background: #dc3545; color: white; }
.gm-btn-info { background: #3498db; color: white; }

/* --- 6. UTILITY TRANSITION --- */
.fade-out {
    opacity: 0;
    transition: opacity 0.2s ease;
}
