/* ===================================================
   iOS 26 Liquid Glass Theme for SweetAlert2 (Global)
   Designed for API BANK STORE 367
   =================================================== */

div.swal2-container {
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    background: rgba(2, 5, 15, 0.72) !important;
    z-index: 99999 !important;
}

div.swal2-popup,
div.swal2-popup.swal2-ios26-glass {
    background: rgba(8, 14, 28, 0.82) !important;
    backdrop-filter: blur(50px) saturate(220%) !important;
    -webkit-backdrop-filter: blur(50px) saturate(220%) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 26px !important;
    padding: 2.2rem 2rem !important;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(0, 122, 255, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.35),
        inset 0 0 25px rgba(255, 255, 255, 0.03) !important;
    color: #ffffff !important;
    position: relative !important;
    overflow: hidden !important;
    max-width: 460px !important;
    width: 90% !important;
}

div.swal2-popup.swal2-show {
    animation: swalGlassIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

div.swal2-popup.swal2-hide {
    animation: swalGlassOut 0.18s ease-in forwards !important;
}

@keyframes swalGlassIn {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(12px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes swalGlassOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.92) translateY(10px);
    }
}

div.swal2-popup::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    pointer-events: none;
}

div.swal2-title {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 1.4rem !important;
    letter-spacing: -0.4px !important;
    margin-top: 0.6rem !important;
    margin-bottom: 0.4rem !important;
}

div.swal2-html-container {
    color: #cbd5e1 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-top: 0.5rem !important;
    margin-bottom: 1.2rem !important;
}

/* iOS 26 Glass Warning Icon */
div.swal2-icon.swal2-warning {
    border: 3px solid rgba(250, 204, 21, 0.45) !important;
    color: #facc15 !important;
    box-shadow: 0 0 35px rgba(250, 204, 21, 0.35), inset 0 0 15px rgba(250, 204, 21, 0.15) !important;
    background: rgba(250, 204, 21, 0.08) !important;
    width: 68px !important;
    height: 68px !important;
    margin: 0.5rem auto 1rem auto !important;
}
div.swal2-icon.swal2-warning .swal2-icon-content {
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    color: #facc15 !important;
}

/* iOS 26 Glass Success Icon (Dấu tích chữ V hoàn hảo, không bị thừa gạch chéo) */
div.swal2-icon.swal2-success {
    position: relative !important;
    border: 3px solid #00F0FF !important;
    color: #00F0FF !important;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.4), inset 0 0 15px rgba(0, 240, 255, 0.15) !important;
    background: rgba(0, 240, 255, 0.08) !important;
    width: 68px !important;
    height: 68px !important;
    margin: 0.5rem auto 1rem auto !important;
    border-radius: 50% !important;
}

div.swal2-icon.swal2-success * {
    display: none !important;
}

div.swal2-icon.swal2-success::after {
    content: '' !important;
    position: absolute !important;
    left: 24px !important;
    top: 13px !important;
    width: 14px !important;
    height: 28px !important;
    border-right: 4px solid #00F0FF !important;
    border-bottom: 4px solid #00F0FF !important;
    transform: rotate(45deg) !important;
    border-radius: 2px !important;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.6) !important;
    animation: swalCheckmarkDraw 0.25s ease-out !important;
}

@keyframes swalCheckmarkDraw {
    0% { opacity: 0; transform: scale(0.6) rotate(45deg); }
    100% { opacity: 1; transform: scale(1) rotate(45deg); }
}

/* iOS 26 Glass Error Icon */
div.swal2-icon.swal2-error {
    border: 3px solid rgba(255, 69, 58, 0.45) !important;
    color: #ff453a !important;
    box-shadow: 0 0 35px rgba(255, 69, 58, 0.35), inset 0 0 15px rgba(255, 69, 58, 0.15) !important;
    background: rgba(255, 69, 58, 0.08) !important;
    width: 68px !important;
    height: 68px !important;
    margin: 0.5rem auto 1rem auto !important;
}

div.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #ff453a !important;
    height: 4px !important;
    border-radius: 4px !important;
}

/* iOS 26 Glass Info Icon */
div.swal2-icon.swal2-info {
    border: 3px solid rgba(0, 122, 255, 0.45) !important;
    color: #007AFF !important;
    box-shadow: 0 0 35px rgba(0, 122, 255, 0.35), inset 0 0 15px rgba(0, 122, 255, 0.15) !important;
    background: rgba(0, 122, 255, 0.08) !important;
    width: 68px !important;
    height: 68px !important;
    margin: 0.5rem auto 1rem auto !important;
}
div.swal2-icon.swal2-info .swal2-icon-content {
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    color: #007AFF !important;
}

/* iOS 26 Liquid Buttons */
div.swal2-actions {
    display: flex !important;
    gap: 0.75rem !important;
    width: 100% !important;
    margin-top: 1rem !important;
    justify-content: center !important;
}

button.swal2-confirm {
    background: linear-gradient(135deg, #007AFF 0%, #00F0FF 100%) !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 0.8rem 1.8rem !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    color: #ffffff !important;
    cursor: pointer !important;
}

button.swal2-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 28px rgba(0, 240, 255, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.6) !important;
}

button.swal2-cancel {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 14px !important;
    padding: 0.8rem 1.6rem !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #cbd5e1 !important;
    transition: all 0.22s !important;
    cursor: pointer !important;
}

button.swal2-cancel:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

/* Loading Spinner */
.swal2-loader {
    border-color: #00F0FF transparent #00F0FF transparent !important;
}
