/**
 * ========================================================
 * TECHSTORE - CUSTOM SWEETALERT2 STYLES (ĐỒNG BỘ 100% THEO ẢNH MẪU)
 * ========================================================
 */

/* Nền mờ phía sau mượt mà */
.swal2-container.swal2-backdrop-show {
    background: rgba(15, 23, 42, 0.55) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    z-index: 9999999 !important;
}

/* Thẻ Popup Card bo tròn chuẩn 22px như ảnh mẫu */
.swal2-popup.app-swal-popup {
    border-radius: 22px !important;
    padding: 34px 28px 28px 28px !important;
    width: 92% !important;
    max-width: 440px !important;
    background: #ffffff !important;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-sizing: border-box !important;
    position: relative !important;
    overflow: hidden !important;
    font-family: 'Be Vietnam Pro', 'Roboto', -apple-system, sans-serif !important;
}

.swal2-popup.app-swal-popup.swal2-show {
    animation: appSwalZoomIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.swal2-popup.app-swal-popup.swal2-hide {
    animation: appSwalZoomOut 0.16s ease-in forwards !important;
}

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

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

/* Hỗ trợ chế độ tối Dark Mode */
html.dark .swal2-popup.app-swal-popup {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.6) !important;
}

/* Icon Thành công Xanh Lá có hiệu ứng vẽ nét động như ảnh mẫu */
.swal2-popup.app-swal-popup .swal2-icon.swal2-success {
    width: 76px !important;
    height: 76px !important;
    border: 3.5px solid #10b981 !important;
    color: #10b981 !important;
    margin: 0 auto 18px auto !important;
    box-sizing: border-box !important;
}

.swal2-popup.app-swal-popup .swal2-icon.swal2-success .swal2-success-ring {
    border: 3.5px solid rgba(16, 185, 129, 0.25) !important;
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

.swal2-popup.app-swal-popup .swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #10b981 !important;
    height: 4.5px !important;
    border-radius: 3px !important;
}

.swal2-popup.app-swal-popup .swal2-icon.swal2-success .swal2-success-circular-line-left,
.swal2-popup.app-swal-popup .swal2-icon.swal2-success .swal2-success-circular-line-right,
.swal2-popup.app-swal-popup .swal2-icon.swal2-success .swal2-success-fix {
    background-color: transparent !important;
}

/* Icon Thất Bại / Lỗi Đỏ */
.swal2-popup.app-swal-popup .swal2-icon.swal2-error {
    width: 76px !important;
    height: 76px !important;
    border: 3.5px solid #ef4444 !important;
    color: #ef4444 !important;
    margin: 0 auto 18px auto !important;
    box-sizing: border-box !important;
}

.swal2-popup.app-swal-popup .swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #ef4444 !important;
    height: 4.5px !important;
    border-radius: 3px !important;
}

/* Icon Cảnh Báo Vàng */
.swal2-popup.app-swal-popup .swal2-icon.swal2-warning {
    width: 76px !important;
    height: 76px !important;
    border: 3.5px solid #f59e0b !important;
    color: #f59e0b !important;
    margin: 0 auto 18px auto !important;
    box-sizing: border-box !important;
}

/* Icon Thông Tin Xanh Dương */
.swal2-popup.app-swal-popup .swal2-icon.swal2-info {
    width: 76px !important;
    height: 76px !important;
    border: 3.5px solid #3b82f6 !important;
    color: #3b82f6 !important;
    margin: 0 auto 18px auto !important;
    box-sizing: border-box !important;
}

/* Tiêu đề thông báo đậm nét, sang trọng */
.swal2-popup.app-swal-popup .swal2-title,
.swal2-popup.app-swal-popup .app-swal-title {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    letter-spacing: -0.3px !important;
    font-family: 'Be Vietnam Pro', 'Roboto', sans-serif !important;
}

html.dark .swal2-popup.app-swal-popup .swal2-title,
html.dark .swal2-popup.app-swal-popup .app-swal-title {
    color: #f8fafc !important;
}

/* Nội dung thông báo */
.swal2-popup.app-swal-popup .swal2-html-container,
.swal2-popup.app-swal-popup .app-swal-html {
    font-size: 14px !important;
    line-height: 1.55 !important;
    color: #475569 !important;
    margin: 0 !important;
    padding: 0 6px !important;
    font-weight: 500 !important;
}

html.dark .swal2-popup.app-swal-popup .swal2-html-container,
html.dark .swal2-popup.app-swal-popup .app-swal-html {
    color: #94a3b8 !important;
}

/* Thanh tiến trình màu đỏ ở đáy khớp 100% ảnh mẫu */
.swal2-popup.app-swal-popup .swal2-timer-progress-bar,
.swal2-popup.app-swal-popup .app-swal-progress {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    height: 4.5px !important;
    background: linear-gradient(90deg, #dc2626, #f73b3b) !important;
    border-radius: 0 0 0 22px !important;
}

/* Nút xác nhận khi cần thiết */
.swal2-popup.app-swal-popup .swal2-actions {
    margin: 20px 0 0 0 !important;
    gap: 10px !important;
}

.swal2-popup.app-swal-popup .swal2-confirm {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    padding: 10px 22px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35) !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.swal2-popup.app-swal-popup .swal2-confirm:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b) !important;
    transform: translateY(-1px) !important;
}

.swal2-popup.app-swal-popup .swal2-cancel {
    background: #f1f5f9 !important;
    color: #64748b !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    padding: 10px 20px !important;
    border-radius: 12px !important;
    border: 1px solid #cbd5e1 !important;
    outline: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.swal2-popup.app-swal-popup .swal2-cancel:hover {
    background: #e2e8f0 !important;
    color: #334155 !important;
}

/* Tuyệt đối ẩn mọi input select và dropdown không mong muốn trong popup thông báo */
.swal2-container select,
.swal2-container .swal2-select,
.swal2-container .custom-select-wrapper,
.swal2-popup select,
.swal2-popup .swal2-select,
.swal2-popup .custom-select-wrapper {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

