/* ==========================================================
   Confirm Modal — Stile Welcome Modal riutilizzabile
   Usare con HTML: @include('layouts.partials.confirm-modal')
   ========================================================== */

.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 45, 61, 0.95);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
}
.confirm-modal-overlay.active {
    display: flex;
}
.confirm-modal-card {
    background: #fff;
    border-radius: 20px;
    padding: 50px 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: confirmFadeInUp 0.5s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 350px;
    max-width: 480px;
}
.confirm-modal-icon {
    font-size: 50px;
    margin-bottom: 20px;
    color: #f5365c;
}
.confirm-modal-icon.icon-warning { color: #f5365c; }
.confirm-modal-icon.icon-info    { color: #2ca7d8; }
.confirm-modal-icon.icon-success { color: #18ce0f; }
.confirm-modal-title {
    font-size: 26px;
    color: #2ca7d8;
    font-weight: 600;
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
}
.confirm-modal-text {
    font-size: 16px;
    color: #666;
    font-weight: 300;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 8px;
    line-height: 1.5;
}
.confirm-modal-subtext {
    font-size: 13px;
    color: #999;
    margin-bottom: 30px;
    font-family: 'Poppins', sans-serif;
}
.confirm-modal-buttons {
    display: flex;
    gap: 20px;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}
.confirm-modal-buttons .btn {
    min-width: auto;
    padding: 12px 32px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-confirm-danger {
    background: linear-gradient(135deg, #f5365c, #f56036);
    color: #fff;
}
.btn-confirm-danger:hover {
    box-shadow: 0 4px 15px rgba(245, 54, 92, 0.4);
    transform: translateY(-1px);
    color: #fff;
}
.btn-confirm-primary {
    background: linear-gradient(135deg, #2ca7d8, #1a8ab8);
    color: #fff;
}
.btn-confirm-primary:hover {
    box-shadow: 0 4px 15px rgba(44, 167, 216, 0.4);
    transform: translateY(-1px);
    color: #fff;
}
.btn-confirm-cancel {
    background: #e9ecef;
    color: #666;
}
.btn-confirm-cancel:hover {
    background: #dee2e6;
    color: #333;
}

@keyframes confirmFadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.confirm-modal-overlay.fade-out {
    animation: confirmFadeOut 0.3s ease-out forwards;
}
@keyframes confirmFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

@media (max-width: 480px) {
    .confirm-modal-card {
        padding: 40px 30px;
        min-width: 280px;
        margin: 20px;
    }
    .confirm-modal-buttons {
        flex-direction: column;
    }
    .confirm-modal-buttons .btn {
        min-width: 100%;
    }
}
