﻿.toast-host {
    position: fixed;
    top: 70px;
    right: 16px;
    z-index: 3000;
    width: 360px;
    max-width: calc(100vw - 32px);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    border: 1px solid rgba(0,0,0,.08);
    overflow: hidden;
    animation: toastIn .18s ease-out;
}

@keyframes toastIn {
    from {
        transform: translateY(-6px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    font-size: .95rem;
}

.toast-body {
    padding: 10px 12px 12px;
    font-size: .95rem;
    color: #222;
    line-height: 1.35;
}

.toast-close {
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.toast-info {
    border-left: 6px solid #0d6efd;
}

.toast-success {
    border-left: 6px solid #198754;
}

.toast-warning {
    border-left: 6px solid #ffc107;
}

.toast-error {
    border-left: 6px solid #dc3545;
}

/*   حشقثىف */

.parent-toast-stack {
    position: fixed;
    top: 84px;
    left: 16px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(380px, calc(100vw - 32px));
}

.parent-toast-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.16);
    border: 1px solid transparent;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.parent-toast-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
    background: rgba(255,255,255,.22);
}

.parent-toast-content {
    min-width: 0;
    flex: 1;
}

.parent-toast-title {
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 3px;
}

.parent-toast-text {
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}

.parent-toast-close {
    position: absolute;
    top: 8px;
    left: 10px;
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    opacity: .85;
}

    .parent-toast-close:hover {
        opacity: 1;
    }

.parent-toast-info {
    background: #eef6ff;
    color: #0f3d77;
    border-color: #cfe2ff;
}

.parent-toast-success {
    background: #ecfdf3;
    color: #166534;
    border-color: #bbf7d0;
}

.parent-toast-warning {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}

.parent-toast-error {
    background: #fff1f2;
    color: #b42318;
    border-color: #fecdd3;
}

@media (max-width: 991.98px) {
    .parent-toast-stack {
        top: 74px;
        left: 10px;
        width: calc(100vw - 20px);
    }
}