/* =========================================================
   CUSTOM TOAST
========================================================= */

.custom-toast-container {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}


/* =========================================================
   TOAST
========================================================= */

.custom-toast {
    width: 360px;
    min-height: 70px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);

    display: flex;
    align-items: center;

    padding: 14px 18px;

    position: relative;
    overflow: hidden;

    transform: translateX(120%);
    opacity: 0;

    animation:
        customToastIn 0.35s ease forwards;

    pointer-events: auto;
}


/* =========================================================
   ICON
========================================================= */

.custom-toast-icon {
    width: 40px;
    height: 40px;

    min-width: 40px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 13px;

    font-size: 18px;
}


/* =========================================================
   CONTENT
========================================================= */

.custom-toast-content {
    flex: 1;
}

.custom-toast-title {
    font-size: 15px;
    font-weight: 600;

    margin: 0 0 3px;
}

.custom-toast-message {
    font-size: 13px;
    color: #666;

    margin: 0;

    line-height: 1.4;
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.custom-toast-close {
    border: 0;
    background: transparent;

    width: 25px;
    height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    color: #999;

    font-size: 15px;

    margin-left: 8px;

    transition: 0.2s;
}

.custom-toast-close:hover {
    color: #222;
}


/* =========================================================
   PROGRESS
========================================================= */

.custom-toast-progress {
    position: absolute;

    left: 0;
    bottom: 0;

    height: 3px;

    width: 100%;

    animation: customToastProgress 3s linear forwards;
}


/* =========================================================
   SUCCESS
========================================================= */

.custom-toast-success {
    border-left: 4px solid #22c55e;
}

.custom-toast-success .custom-toast-icon {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.custom-toast-success .custom-toast-title {
    color: #15803d;
}

.custom-toast-success .custom-toast-progress {
    background: #22c55e;
}


/* =========================================================
   ERROR
========================================================= */

.custom-toast-error {
    border-left: 4px solid #ef4444;
}

.custom-toast-error .custom-toast-icon {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.custom-toast-error .custom-toast-title {
    color: #b91c1c;
}

.custom-toast-error .custom-toast-progress {
    background: #ef4444;
}


/* =========================================================
   WARNING
========================================================= */

.custom-toast-warning {
    border-left: 4px solid #f59e0b;
}

.custom-toast-warning .custom-toast-icon {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.custom-toast-warning .custom-toast-title {
    color: #b45309;
}

.custom-toast-warning .custom-toast-progress {
    background: #f59e0b;
}


/* =========================================================
   INFO
========================================================= */

.custom-toast-info {
    border-left: 4px solid #3b82f6;
}

.custom-toast-info .custom-toast-icon {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.custom-toast-info .custom-toast-title {
    color: #1d4ed8;
}

.custom-toast-info .custom-toast-progress {
    background: #3b82f6;
}


/* =========================================================
   ANIMATION
========================================================= */

@keyframes customToastIn {

    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }

}


@keyframes customToastOut {

    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(120%);
        opacity: 0;
    }

}


@keyframes customToastProgress {

    from {
        width: 100%;
    }

    to {
        width: 0%;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 575px) {

    .custom-toast-container {
        top: 15px;
        left: 15px;
        right: 15px;
    }

    .custom-toast {
        width: 100%;
    }

}