/* =========================================
   FictionX SweetAlert2 Custom Theme
   Global styles for all Swal.fire dialogs
   ========================================= */

/* Main Popup Container */
.swal2-popup {
    border-radius: 16px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #FAFAFA !important;
    border: none !important;
    min-height: auto !important;
    width: Auto !important;
    max-width: 95vw !important;
}

/* Top Purple Border Bar */
.swal2-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #970C1B 0%, #970C1B 100%);
    z-index: 100;
}

/* Hide default icon */
.swal2-popup .swal2-icon {
    display: none !important;
}

/* Close Button (X) */
.swal2-popup .swal2-close {
    position: absolute !important;
    left: 12px !important;
    top: 15px !important;
    right: auto !important;
    font-size: 26px !important;
    font-weight: 300 !important;
    color: #bbb !important;
    z-index: 100 !important;
    width: 30px !important;
    height: 30px !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.swal2-popup .swal2-close:hover {
    color: #888 !important;
    transform: none !important;
}

.swal2-popup .swal2-close:focus {
    box-shadow: none !important;
}

/* Title Styling */
.swal2-popup .swal2-title {
    color: #42213A !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    padding: 30px 30px 10px 30px !important;
    margin: 0 !important;
    text-align: center !important;
    display: block !important;
}

/* Subtitle / HTML Container */
.swal2-popup .swal2-html-container {
    color: #555 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Warning Box Styling - Horizontal Layout with Icon */
.swal-warning-box {
    background: #FFF8E8 !important;
    border: 2px dotted #FBE0A1 !important;
    border-radius: 12px !important;
    padding: 10px 25px !important;
    margin: 15px 30px 20px 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
    flex-direction: row-reverse !important;
}

.swal-warning-box .swal-warning-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swal-warning-box .swal-warning-icon svg {
    width: 36px;
    height: 36px;
    fill: #E9A825;
}

.swal-warning-box .swal-warning-icon i {
    font-size: 32px;
    color: #E9A825;
}

.swal-warning-box .swal-warning-text {
    color: #42213A !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    text-align: right !important;
}

.swal-warning-box p {
    color: #42213A !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* Note text below warning box */
.swal-note {
    color: #888 !important;
    font-size: 13px !important;
    text-align: center !important;
    margin: 10px 30px 5px 30px !important;
}

/* Actions Container (Buttons) */
.swal2-popup .swal2-actions {
    padding: 8px 30px 8px 30px !important;
    margin: 0 !important;
    gap: 15px !important;
    flex-direction: row-reverse !important;
    justify-content: center !important;
}

/* Confirm Button - Pink/Red */
.swal2-popup .swal2-confirm {
    background: linear-gradient(135deg, #42213A 0%, #42213A 100%) !important;
    color: white !important;
    border: none !important;
    padding: 10px 25px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    min-width: 150px !important;
    order: 1 !important;
}

.swal2-popup .swal2-confirm:hover {
    background: linear-gradient(135deg, #42213A 0%, #42213A 100%) !important;
    transform: translateY(-2px) !important;
}

.swal2-popup .swal2-confirm:focus {
    box-shadow: none !important;
}

/* Cancel Button - Light Gray */
.swal2-popup .swal2-cancel {
    background: #EFEFEF !important;
    color: #666 !important;
    border: none !important;
    padding: 14px 35px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    min-width: 120px !important;
    order: 2 !important;
}

.swal2-popup .swal2-cancel:hover {
    background: #E0E0E0 !important;
    color: #444 !important;
}

.swal2-popup .swal2-cancel:focus {
    box-shadow: none !important;
}

/* Deny Button */
.swal2-popup .swal2-deny {
    background: #FFA800 !important;
    color: white !important;
    border: none !important;
    padding: 14px 35px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
}

/* Backdrop */
.swal2-container.swal2-shown {
    background-color: rgba(0, 0, 0, 0.35) !important;
}

/* Animation */
.swal2-popup.swal2-show {
    animation: swal2-show-custom 0.25s ease-out !important;
}

@keyframes swal2-show-custom {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Loader */
.swal2-popup .swal2-loader {
    border-color: #E91E63 transparent #E91E63 transparent !important;
}

/* Success variant */
.swal2-popup.swal2-icon-success .swal2-confirm {
    background: linear-gradient(135deg, #50cd89 0%, #3CB371 100%) !important;
    box-shadow: 0 4px 15px rgba(80, 205, 137, 0.3) !important;
}

.swal2-popup.swal2-icon-success .swal2-confirm:hover {
    background: linear-gradient(135deg, #3CB371 0%, #2E8B57 100%) !important;
    box-shadow: 0 6px 20px rgba(80, 205, 137, 0.4) !important;
}

.swal2-popup.swal2-icon-success .swal2-title {
    color: #50cd89 !important;
}

/* Info variant */
.swal2-popup.swal2-icon-info .swal2-confirm {
    background: linear-gradient(135deg, #009ef7 0%, #0077cc 100%) !important;
    box-shadow: 0 4px 15px rgba(0, 158, 247, 0.3) !important;
}

.swal2-popup.swal2-icon-info .swal2-title {
    color: #009ef7 !important;
}

/* Warning variant title color */
.swal2-popup.swal2-icon-warning .swal2-title {
    color: #42213A !important;
}