/* Delete Confirmation Modal Styles */
/* Stili per il Modal di Conferma Eliminazione */

.delete-confirmation-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

.delete-confirmation-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-confirmation-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 0;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideIn 0.3s ease-out;
    overflow: hidden;
}

/* Header del modal */
.delete-confirmation-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 24px 32px;
    text-align: center;
    position: relative;
}

.delete-confirmation-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.delete-confirmation-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    animation: pulse 2s infinite;
}

.delete-confirmation-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.delete-confirmation-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin: 8px 0 0 0;
    position: relative;
    z-index: 1;
}

/* Body del modal */
.delete-confirmation-body {
    padding: 32px;
    text-align: center;
}

.delete-confirmation-message {
    font-size: 16px;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 24px;
}

.delete-confirmation-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    border-left: 4px solid #dc3545;
}

.delete-confirmation-details h4 {
    color: #dc3545;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.delete-confirmation-details p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
}

/* Footer del modal */
.delete-confirmation-footer {
    padding: 0 32px 32px 32px;
    display: flex;
    gap: 16px;
    justify-content: center;
}

.delete-confirmation-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.delete-confirmation-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.delete-confirmation-btn:hover::before {
    left: 100%;
}

.delete-confirmation-btn-cancel {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.delete-confirmation-btn-cancel:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.delete-confirmation-btn-delete {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.delete-confirmation-btn-delete:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.delete-confirmation-btn:active {
    transform: translateY(0);
}

/* Loading state */
.delete-confirmation-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.delete-confirmation-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .delete-confirmation-content {
        width: 95%;
        margin: 20px;
    }
    
    .delete-confirmation-header {
        padding: 20px 24px;
    }
    
    .delete-confirmation-body {
        padding: 24px;
    }
    
    .delete-confirmation-footer {
        padding: 0 24px 24px 24px;
        flex-direction: column;
    }
    
    .delete-confirmation-btn {
        width: 100%;
    }
    
    .delete-confirmation-title {
        font-size: 20px;
    }
    
    .delete-confirmation-icon {
        font-size: 40px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .delete-confirmation-content {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .delete-confirmation-message {
        color: #e2e8f0;
    }
    
    .delete-confirmation-details {
        background: #4a5568;
        border-left-color: #f56565;
    }
    
    .delete-confirmation-details h4 {
        color: #f56565;
    }
    
    .delete-confirmation-details p {
        color: #a0aec0;
    }
}
