/* ═══════════════════════════════════════════════════════ */
/* USER NOTIFICATIONS — Modern Toast System                 */
/* ═══════════════════════════════════════════════════════ */

#un-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 480px;
    padding: 0 16px;
    pointer-events: none;
    direction: rtl;
    font-family: "YEKAN WOFF2", "Peyda", Tahoma, sans-serif;
}

.un-toast {
    pointer-events: auto;
    background: #fff;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.un-toast.un-show {
    opacity: 1;
    transform: translateY(0);
}

.un-toast.un-hide {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
}

.un-toast::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 4px;
}

.un-toast.un-warning::before {
    background: linear-gradient(180deg, #f59e0b, #d97706);
}

.un-toast.un-danger::before {
    background: linear-gradient(180deg, #ef4444, #dc2626);
}

.un-toast.un-info::before {
    background: linear-gradient(180deg, #3b82f6, #2563eb);
}

.un-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    position: relative;
}

.un-toast.un-warning .un-icon {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 8px 20px -6px rgba(245, 158, 11, 0.5);
}

.un-toast.un-danger .un-icon {
    background: linear-gradient(135deg, #f87171, #ef4444);
    box-shadow: 0 8px 20px -6px rgba(239, 68, 68, 0.5);
}

.un-toast.un-info .un-icon {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    box-shadow: 0 8px 20px -6px rgba(59, 130, 246, 0.5);
}

.un-body {
    flex: 1;
    min-width: 0;
}

.un-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
    line-height: 1.4;
}

.un-message {
    font-size: 12.5px;
    color: #64748b;
    margin: 0 0 10px;
    line-height: 1.6;
}

.un-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.un-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    border: 0;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.un-toast.un-warning .un-action-btn.un-primary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 4px 12px -4px rgba(245, 158, 11, 0.5);
}

.un-toast.un-danger .un-action-btn.un-primary {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 4px 12px -4px rgba(239, 68, 68, 0.5);
}

.un-toast.un-info .un-action-btn.un-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 4px 12px -4px rgba(59, 130, 246, 0.5);
}

.un-action-btn.un-primary:hover {
    transform: translateY(-1px);
}

.un-action-btn.un-dismiss {
    background: #f1f5f9;
    color: #64748b;
}

.un-action-btn.un-dismiss:hover {
    background: #e2e8f0;
    color: #334155;
}

/* Progress bar (auto-dismiss) */
.un-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #e2e8f0;
    width: 100%;
}

.un-progress-fill {
    height: 100%;
    background: #94a3b8;
    width: 100%;
    animation: unProgress 8s linear forwards;
}

@keyframes unProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Mobile */
@media (max-width: 480px) {
    #un-container {
        top: 12px;
        padding: 0 12px;
    }
    .un-toast {
        padding: 14px 14px;
        border-radius: 14px;
    }
    .un-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-radius: 10px;
    }
    .un-title {
        font-size: 13px;
    }
    .un-message {
        font-size: 12px;
    }
    .un-action-btn {
        padding: 6px 12px;
        font-size: 11.5px;
    }
}
