/* Success Toast Section */
.swal2-icon.swal2-success {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    background: #4DCF1F !important;
    border: none !important;
    border-radius: 50% !important;
    margin: 0 !important;
}
.swal2-success .swal2-success-ring,
.swal2-success .swal2-success-circular-line-left,
.swal2-success .swal2-success-circular-line-right,
.swal2-success .swal2-success-fix {
    display: none !important;
}
.swal2-success .swal2-success-line-tip {
    width: 5px !important;
    height: 2px !important;
    background-color: #FFFFFF !important;
    left: 5px !important;
    top: 10px !important;
    border-radius: 0 !important;
}
.swal2-success .swal2-success-line-long {
    width: 8px !important;
    height: 2px !important;
    background-color: #FFFFFF !important;
    right: 5px !important;
    top: 8px !important;
    border-radius: 0 !important;
}

/* Error Toast Section */
.swal2-icon.swal2-error {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    background: #EF4444 !important;
    border: none !important;
    border-radius: 50% !important;
    margin: 0 !important;
}
.swal2-error .swal2-x-mark,
.swal2-error [class^='swal2-x-mark-line'] {
    display: none !important;
}
.swal2-error::before,
.swal2-error::after {
    content: '' !important;
    position: absolute !important;
    width: 10px !important;
    height: 2px !important;
    background: #FFFFFF !important;
    top: 50% !important;
    left: 50% !important;
}
.swal2-error::before {
    transform: translate(-50%, -50%) rotate(45deg) !important;
}
.swal2-error::after {
    transform: translate(-50%, -50%) rotate(-45deg) !important;
}

/* Info Toast Section */
.swal2-icon.swal2-info {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    background: #3B82F6 !important;
    border: none !important;
    border-radius: 50% !important;
    margin: 0 !important;
}
.swal2-info .swal2-icon-content {
    color: #FFFFFF !important;
    font-size: 12px !important;
    line-height: 20px !important;
    text-align: center !important;
}

/* ============================================ */
/* Confirmation Dialog Section (Figma Design)  */
/* ============================================ */

/* Main popup container */
.swal2-popup.custom-swal-popup {
    border-radius: 12px !important;
    padding: 32px !important;
    width: 600px !important;
    max-width: 90vw !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Hide icon for confirmation dialogs */
.custom-swal-popup .swal2-icon {
    display: none !important;
}

/* Title styling */
.custom-swal-title {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    text-align: left !important;
    line-height: 1.4 !important;
}

/* Content text styling */
.custom-swal-text {
    font-size: 16px !important;
    color: #666666 !important;
    margin: 0 0 32px 0 !important;
    text-align: left !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}

/* Actions container */
.custom-swal-popup .swal2-actions {
    margin: 0 !important;
    padding: 0 !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    width: 100% !important;
}

/* Cancel button (Batal) */
.custom-swal-cancel {
    background-color: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.custom-swal-cancel:hover {
    background-color: #f9fafb !important;
    border-color: #9ca3af !important;
}

.custom-swal-cancel:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(209, 213, 219, 0.3) !important;
}

/* Confirm button (Pasti) */
.custom-swal-confirm {
    background-color: #dc2626 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.custom-swal-confirm:hover {
    background-color: #b91c1c !important;
}

.custom-swal-confirm:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3) !important;
}

/* Close button (X) */
.custom-swal-popup .swal2-close {
    color: #9ca3af !important;
    font-size: 28px !important;
    font-weight: 300 !important;
    right: 20px !important;
    top: 20px !important;
    width: 32px !important;
    height: 32px !important;
    transition: color 0.2s ease !important;
}

.custom-swal-popup .swal2-close:hover {
    color: #6b7280 !important;
    background: transparent !important;
}

.custom-swal-popup .swal2-close:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Remove default SweetAlert2 button styling */
.custom-swal-popup .swal2-styled:focus {
    box-shadow: none !important;
}

/* Ensure proper button order */
.custom-swal-popup .swal2-cancel {
    order: 1 !important;
}

.custom-swal-popup .swal2-confirm {
    order: 2 !important;
}