/* Toast Service — modern bildirimler, sayfa üstünde */
:root {
    --toast-success-bg: #10b981;
    --toast-success-text: #fff;
    --toast-success-icon: #fff;
    --toast-error-bg: #ef4444;
    --toast-error-text: #fff;
    --toast-error-icon: #fff;
    --toast-warning-bg: #f59e0b;
    --toast-warning-text: #fff;
    --toast-warning-icon: #fff;
}

#toast-container {
    position: fixed;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    /* بالاتر از #taul-app-header (200232) و dropdown منوها (200240) در پنل کاربری */
    z-index: 300000;
    padding: 0.75rem 1rem;
    max-width: 100%;
    width: 100%;
    max-width: 420px;
    pointer-events: none;
}

.toast-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    margin-bottom: 0.5rem;
    animation: toastSlideIn 0.35s ease-out;
    pointer-events: auto;
    font-size: 0.95rem;
    line-height: 1.5;
}

.toast-item:last-child {
    margin-bottom: 0;
}

.toast-item.toast-out {
    animation: toastSlideOut 0.25s ease-in forwards;
}

.toast-item .toast-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-item .toast-message {
    flex: 1;
}

.toast-item.toast-success {
    background: var(--toast-success-bg);
    color: var(--toast-success-text);
}

.toast-item.toast-error {
    background: var(--toast-error-bg);
    color: var(--toast-error-text);
}

.toast-item.toast-warning {
    background: var(--toast-warning-bg);
    color: var(--toast-warning-text);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-100%);
    }
}
