﻿.sl-toast {
    border: 1px solid #A5D6A7;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    margin-top:60px;
}

.swal2-popup {
    width: 390px !important;
    padding: 30px 28px 26px !important;
    border-radius: 18px !important;
    font-family: inherit !important;
    box-shadow: 0 18px 50px rgba(0,0,0,0.20) !important;
    border: 1px solid rgba(255,255,255,0.8) !important;
}

.swal2-title {
    margin: 8px 0 8px !important;
    font-size: 24px !important;
    font-weight: 600 !important;
}

.swal2-html-container {
    margin: 0 0 18px !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

.swal2-icon {
    margin: 0 auto 12px !important;
    transform: scale(0.9);
}

.swal2-actions {
    margin-top: 20px !important;
    gap: 10px !important;
}

.swal2-confirm,
.swal2-cancel {
    min-width: 105px !important;
    min-height: 42px !important;
    padding: 9px 20px !important;
    border: 0 !important;
    border-radius: 9px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

    .swal2-confirm:hover,
    .swal2-cancel:hover {
        transform: translateY(-1px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    }

/* =========================
   SUCCESS
   ========================= */

.swal-success {
    background: #eaf8f0 !important;
    border: 2px solid #30a262 !important;
}

    .swal-success .swal2-title {
        color: #187a46 !important;
    }

    .swal-success .swal2-html-container {
        color: #3d7658 !important;
    }

    .swal-success .swal2-confirm {
        background: #30a262 !important;
        color: #ffffff !important;
    }

        .swal-success .swal2-confirm:hover {
            background: #268b53 !important;
        }

    .swal-success .swal2-icon {
        border-color: #30a262 !important;
        color: #30a262 !important;
    }


/* =========================
   ERROR
   ========================= */

.swal-error {
    background: #fff0f0 !important;
    border: 2px solid #dc3545 !important;
}

    .swal-error .swal2-title {
        color: #b42332 !important;
    }

    .swal-error .swal2-html-container {
        color: #82424a !important;
    }

    .swal-error .swal2-confirm {
        background: #dc3545 !important;
        color: #ffffff !important;
    }

        .swal-error .swal2-confirm:hover {
            background: #bb2d3b !important;
        }

    .swal-error .swal2-icon {
        border-color: #dc3545 !important;
        color: #dc3545 !important;
    }


/* =========================
   WARNING
   ========================= */

.swal-warning {
    background: #fff8e6 !important;
    border: 2px solid #f0ad00 !important;
}

    .swal-warning .swal2-title {
        color: #9a6700 !important;
    }

    .swal-warning .swal2-html-container {
        color: #806b38 !important;
    }

    .swal-warning .swal2-confirm {
        background: #f0ad00 !important;
        color: #ffffff !important;
    }

        .swal-warning .swal2-confirm:hover {
            background: #d99b00 !important;
        }

    .swal-warning .swal2-icon {
        border-color: #f0ad00 !important;
        color: #f0ad00 !important;
    }


/* =========================
   INFO
   ========================= */

.swal-info {
    background: #edf6ff !important;
    border: 2px solid #0a5c9b !important;
}

    .swal-info .swal2-title {
        color: #084b7d !important;
    }

    .swal-info .swal2-html-container {
        color: #496c88 !important;
    }

    .swal-info .swal2-confirm {
        background: #0a5c9b !important;
        color: #ffffff !important;
    }

        .swal-info .swal2-confirm:hover {
            background: #084b7d !important;
        }

    .swal-info .swal2-icon {
        border-color: #0a5c9b !important;
        color: #0a5c9b !important;
    }


/* =========================
   CONFIRM
   ========================= */

.swal-confirm {
    background: #fff8e6 !important;
    border: 2px solid #f0ad00 !important;
}

    .swal-confirm .swal2-title {
        color: #8a5b00 !important;
    }

    .swal-confirm .swal2-html-container {
        color: #806b38 !important;
    }

    .swal-confirm .swal2-confirm {
        background: #f0ad00 !important;
        color: #ffffff !important;
    }

    .swal-confirm .swal2-cancel {
        background: #6c757d !important;
        color: #ffffff !important;
    }


/* =========================
   BACKGROUND
   ========================= */

.swal2-container.swal-success-backdrop {
    background: rgba(48,162,98,0.50) !important;
}

.swal2-container.swal-error-backdrop {
    background: rgba(220,53,69,0.50) !important;
}

.swal2-container.swal-warning-backdrop {
    background: rgba(240,173,0,0.50) !important;
}

.swal2-container.swal-info-backdrop {
    background: rgba(10,92,155,0.50) !important;
}

.swal2-container.swal-confirm-backdrop {
    background: rgba(240,173,0,0.50) !important;
}


/* =========================
   ANIMATION
   ========================= */

.swal2-show {
    animation: stockLedgerAlertShow 0.25s ease-out !important;
}

.swal2-hide {
    animation: stockLedgerAlertHide 0.18s ease-in !important;
}

@keyframes stockLedgerAlertShow {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes stockLedgerAlertHide {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
    }
}
