/* ==========================================================================
   CUSTOM AESTHETIC MODAL (SWEETALERT REPLACEMENT)
   Strict Bottom-to-Top Slide Entry & Top-to-Bottom Slide Exit (No Opacity Fade)
   ========================================================================== */

/* Overlay Backdrop with Blur */
.custom-swal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    padding: 16px;
    box-sizing: border-box;
    overflow: hidden;
}

.custom-swal-overlay.custom-swal-show {
    opacity: 1;
    visibility: visible;
}

.custom-swal-overlay.custom-swal-hide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in, visibility 0.3s ease-in;
}

/* Modal Card - 100% Pure Slide from Screen Bottom (translateY(100vh)) - NO OPACITY FADE */
.custom-swal-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px 26px 26px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 25px rgba(0, 0, 0, 0.05);
    position: relative;
    text-align: center;
    transform: translateY(100vh);
    opacity: 1 !important;
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    overflow: hidden;
    will-change: transform;
}

/* Entry Animation: Pure Slide Up to Center */
.custom-swal-overlay.custom-swal-show .custom-swal-card {
    transform: translateY(0);
    opacity: 1 !important;
}

/* Exit Animation: Pure Slide Down to Off-Screen Bottom */
.custom-swal-overlay.custom-swal-hide .custom-swal-card {
    transform: translateY(100vh);
    opacity: 1 !important;
    transition: transform 0.32s cubic-bezier(0.4, 0, 1, 1);
}

/* Illustration Image Container - Stretch Width & Disabled Hover Effects */
.custom-swal-illustration-wrap {
    width: 100%;
    display: block;
    margin-bottom: 20px;
}

.custom-swal-illustration {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 14px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.08));
    /* Hover animation completely disabled */
}

/* Modal Typography */
.custom-swal-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 10px 0;
    font-family: inherit;
    letter-spacing: -0.02em;
}

.custom-swal-title-success {
    color: #10b981;
}

.custom-swal-title-confirm {
    color: #1e293b;
}

.custom-swal-title-danger {
    color: #e11d48;
}

.custom-swal-title-warning {
    color: #f59e0b;
}

.custom-swal-text {
    font-size: 14px;
    font-weight: 400;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 24px 0;
    padding: 0 4px;
}

/* Interactive Actions Container */
.custom-swal-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 8px;
}

/* Base Modal Action Button - Strict Alignment with Global Kopita Button System */
.custom-swal-btn {
    flex: 1;
    min-height: 44px;
    height: 44px;
    padding: 10px 18px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    cursor: pointer !important;
    outline: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: inherit !important;
    text-decoration: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    position: relative !important;
    overflow: hidden !important;
    text-shadow: none !important;
}

.custom-swal-btn:active {
    transform: translateY(0px) scale(0.98) !important;
    transition-duration: 0.05s !important;
}

/* Cancel Action Button (Global Secondary Button Mirror) */
.custom-swal-btn-cancel {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%) !important;
    border: 1px solid #CBD5E1 !important;
    color: #334155 !important;
    box-shadow: 
        inset 0 1px 0 0 #FFFFFF,
        0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.custom-swal-btn-cancel:hover {
    background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%) !important;
    border-color: #94A3B8 !important;
    color: #0F172A !important;
    transform: translateY(-1px) !important;
    box-shadow: 
        inset 0 1px 0 0 #FFFFFF,
        0 4px 12px 0 rgba(148, 163, 184, 0.25) !important;
}

.custom-swal-btn-cancel:active {
    background: #EDF2F7 !important;
    border-color: #94A3B8 !important;
    color: #0F172A !important;
    transform: translateY(0px) scale(0.98) !important;
    box-shadow: 
        inset 0 2px 4px 0 rgba(0, 0, 0, 0.08),
        0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

/* Confirm Action Button (Global Primary Pink Gradient Mirror) */
.custom-swal-btn-confirm {
    background: linear-gradient(180deg, #FF3B8D 0%, #E61E72 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #FFFFFF !important;
    box-shadow: 
        inset 0 1px 0 0 rgba(255, 255, 255, 0.25),
        0 1px 2px 0 rgba(0, 0, 0, 0.05),
        0 4px 14px 0 rgba(255, 47, 146, 0.3) !important;
}

.custom-swal-btn-confirm:hover {
    background: linear-gradient(180deg, #FF4D9A 0%, #EF267C 100%) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #FFFFFF !important;
    transform: translateY(-1px) !important;
    box-shadow: 
        inset 0 1px 0 0 rgba(255, 255, 255, 0.35),
        0 6px 18px 0 rgba(255, 47, 146, 0.42) !important;
}

.custom-swal-btn-confirm:active {
    background: linear-gradient(180deg, #D91B5C 0%, #C2185B 100%) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #FFFFFF !important;
    transform: translateY(0px) scale(0.98) !important;
    box-shadow: 
        inset 0 2px 4px 0 rgba(0, 0, 0, 0.2),
        0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

/* Danger / Delete Action Button (Global Danger Gradient Mirror) */
.custom-swal-btn-danger {
    background: linear-gradient(180deg, #EF4444 0%, #DC2626 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #FFFFFF !important;
    box-shadow: 
        inset 0 1px 0 0 rgba(255, 255, 255, 0.25),
        0 1px 2px 0 rgba(0, 0, 0, 0.05),
        0 4px 14px 0 rgba(239, 68, 68, 0.3) !important;
}

.custom-swal-btn-danger:hover {
    background: linear-gradient(180deg, #F87171 0%, #EF4444 100%) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #FFFFFF !important;
    transform: translateY(-1px) !important;
    box-shadow: 
        inset 0 1px 0 0 rgba(255, 255, 255, 0.35),
        0 6px 18px 0 rgba(239, 68, 68, 0.45) !important;
}

.custom-swal-btn-danger:active {
    background: linear-gradient(180deg, #B91C1C 0%, #991B1B 100%) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #FFFFFF !important;
    transform: translateY(0px) scale(0.98) !important;
    box-shadow: 
        inset 0 2px 4px 0 rgba(0, 0, 0, 0.2),
        0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

/* Success Action Button (Global Success Gradient Mirror) */
.custom-swal-btn-success {
    background: linear-gradient(180deg, #10B981 0%, #059669 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #FFFFFF !important;
    width: 100%;
    box-shadow: 
        inset 0 1px 0 0 rgba(255, 255, 255, 0.25),
        0 1px 2px 0 rgba(0, 0, 0, 0.05),
        0 4px 14px 0 rgba(16, 185, 129, 0.3) !important;
}

.custom-swal-btn-success:hover {
    background: linear-gradient(180deg, #34D399 0%, #10B981 100%) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #FFFFFF !important;
    transform: translateY(-1px) !important;
    box-shadow: 
        inset 0 1px 0 0 rgba(255, 255, 255, 0.35),
        0 6px 18px 0 rgba(16, 185, 129, 0.45) !important;
}

.custom-swal-btn-success:active {
    background: linear-gradient(180deg, #047857 0%, #065F46 100%) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #FFFFFF !important;
    transform: translateY(0px) scale(0.98) !important;
    box-shadow: 
        inset 0 2px 4px 0 rgba(0, 0, 0, 0.2),
        0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

/* Accessibility Focus States */
.custom-swal-btn:focus-visible {
    outline: none !important;
}
.custom-swal-btn-confirm:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 59, 141, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}
.custom-swal-btn-danger:focus-visible {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}
.custom-swal-btn-success:focus-visible {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}
.custom-swal-btn-cancel:focus-visible {
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.35), inset 0 1px 0 #FFFFFF !important;
}
