/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */

.toast-container-sabz {
    position: fixed;
    top: 90px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
    width: calc(100% - 40px);
    pointer-events: none;
}

@media (min-width: 769px) {

    .admin-topbar~div .toast-container-sabz,
    body:has(.admin-topbar) .toast-container-sabz {
        top: 80px;
    }
}

.toast-card-sabz {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(15, 61, 46, 0.18);
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    border-right: 4px solid var(--green-500);
    animation: toastIn .3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes toastIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-card-sabz.toast-success {
    border-right-color: var(--green-500);
}

.toast-card-sabz.toast-info {
    border-right-color: #17a2b8;
}

.toast-card-sabz.toast-warning {
    border-right-color: #f5a623;
}

.toast-card-sabz.toast-danger {
    border-right-color: #dc3545;
}

.toast-icon {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--green-100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.toast-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.toast-icon i {
    font-size: 1.4rem;
    color: var(--green-700);
}

.toast-success .toast-icon {
    background: var(--green-100);
}

.toast-success .toast-icon i {
    color: var(--green-500);
}

.toast-info .toast-icon {
    background: #e0f4f7;
}

.toast-info .toast-icon i {
    color: #17a2b8;
}

.toast-warning .toast-icon {
    background: #fff4e0;
}

.toast-warning .toast-icon i {
    color: #f5a623;
}

.toast-danger .toast-icon {
    background: #fde8ea;
}

.toast-danger .toast-icon i {
    color: #dc3545;
}

.toast-body {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 700;
    font-size: .9rem;
    color: var(--neutral-900);
    margin-bottom: 2px;
}

.toast-message {
    font-size: .83rem;
    color: var(--neutral-600);
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--green-700);
    text-decoration: none;
    padding: 4px 10px;
    background: var(--green-100);
    border-radius: 20px;
    transition: background .2s;
}

.toast-action:hover {
    background: var(--green-300);
    color: var(--green-900);
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--neutral-300);
    font-size: .8rem;
    padding: 4px;
    cursor: pointer;
    transition: color .2s;
    flex-shrink: 0;
}

.toast-close:hover {
    color: var(--neutral-900);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--green-500);
    transform-origin: right;
    animation: toastProgress linear forwards;
}

.toast-warning .toast-progress {
    background: #f5a623;
}

.toast-danger .toast-progress {
    background: #dc3545;
}

.toast-info .toast-progress {
    background: #17a2b8;
}

@keyframes toastProgress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

.toast-slide-leave-active {
    transition: all .25s ease;
}

.toast-slide-leave-to {
    transform: translateX(-100%);
    opacity: 0;
}

.toast-slide-move {
    transition: transform .25s ease;
}

@media (max-width: 576px) {
    .toast-container-sabz {
        top: auto;
        bottom: 20px;
        left: 10px;
        right: 10px;
        width: auto;
        max-width: none;
    }

    .toast-card-sabz {
        animation: toastInMobile .3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes toastInMobile {
        from {
            transform: translateY(100%);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .toast-slide-leave-to {
        transform: translateY(100%);
    }
}