/* ==========================================
   FBIS StockFlow - SweetAlert2 Dialog Component
   File: swal2_title.css
   Description: Ultra-modern, animated modal matching
                del-box / del-circle UI style.
   ========================================== */

/* Popup Container override for del-box */
.swal2-popup.del-box,
.swal2-popup.swal2-del-modal {
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.22) !important;
    width: 100% !important;
    max-width: 380px !important;
    padding: 2rem 1.75rem 1.65rem !important;
    text-align: center !important;
    margin: 0 auto !important;
    font-family: 'Kantumruy Pro', 'Inter', system-ui, sans-serif !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    overflow: hidden !important;
}

/* Circle Icon Wrapper */
.del-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Danger / Delete Icon */
.del-circle.del-danger,
.del-circle:not(.del-info):not(.del-warning):not(.del-success) {
    background: #fff1f2;
    border: 2px solid #fecaca;
    color: #dc2626;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.12);
}

/* Info / Logout Icon */
.del-circle.del-info {
    background: #eff6ff;
    border: 2px solid #bfdbfe;
    color: #2563eb;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
}

/* Warning Icon */
.del-circle.del-warning {
    background: #fffbeb;
    border: 2px solid #fde68a;
    color: #d97706;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.12);
}

/* Success Icon */
.del-circle.del-success {
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    color: #16a34a;
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.12);
}

/* Dialog Title */
.del-title,
.swal2-title.del-title {
    font-size: 1.08rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 0.55rem !important;
    line-height: 1.45 !important;
    padding: 0 !important;
    letter-spacing: -0.01em !important;
}

/* Dialog Subtitle / Description */
.del-sub {
    font-size: 0.84rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-weight: 400;
}

/* SweetAlert2 Actions Row */
.swal2-popup.del-box .swal2-actions,
.swal2-actions.del-actions {
    margin-top: 0.25rem !important;
    gap: 0.75rem !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    padding: 0 !important;
}

/* Confirm Button (Delete / Red) */
.btn-del-yes,
.btn-swal-confirm {
    flex: 1;
    padding: 0.7rem 1rem !important;
    background: linear-gradient(135deg, #dc2626, #991b1b) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    font-family: inherit !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.32) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-del-yes:hover,
.btn-swal-confirm:hover {
    background: linear-gradient(135deg, #b91c1c, #7f1d1d) !important;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45) !important;
    transform: translateY(-1px);
    color: #ffffff !important;
}

.btn-del-yes:active,
.btn-swal-confirm:active {
    transform: translateY(0);
}

/* Confirm Button (Info / Blue) */
.btn-swal-confirm-info {
    background: linear-gradient(135deg, #2563eb, #1e40af) !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32) !important;
}

.btn-swal-confirm-info:hover {
    background: linear-gradient(135deg, #1d4ed8, #172554) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45) !important;
}

/* Cancel Button */
.btn-del-no,
.btn-swal-cancel {
    flex: 1;
    padding: 0.7rem 1rem !important;
    background: #f8fafc !important;
    color: #475569 !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    font-family: inherit !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-del-no:hover,
.btn-swal-cancel:hover {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-1px);
}

.btn-del-no:active,
.btn-swal-cancel:active {
    transform: translateY(0);
}

/* Backdrop Blur */
.swal2-container.swal2-backdrop-show {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: rgba(15, 23, 42, 0.5) !important;
}
