 :root {
    --success-color: #10b981;
    --success-dark: #059669;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
}

.toast-notification {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    z-index: 10000;
    min-width: 350px;
    max-width: 90%;
    overflow: hidden;
    opacity: 0;
    animation: toastSlideIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* رنگ‌ها */
.toast-success { border-right: 5px solid var(--success-color); }
.toast-success .toast-icon { 
    background: linear-gradient(135deg, var(--success-color), var(--success-dark));
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}
.toast-success .toast-progress-bar { 
    background: linear-gradient(90deg, var(--success-color), var(--success-dark)); 
}

.toast-error { border-right: 5px solid var(--error-color); }
.toast-error .toast-icon { 
    background: linear-gradient(135deg, var(--error-color), #dc2626);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}
.toast-error .toast-progress-bar { 
    background: linear-gradient(90deg, var(--error-color), #dc2626); 
}

.toast-warning { border-right: 5px solid var(--warning-color); }
.toast-warning .toast-icon { 
    background: linear-gradient(135deg, var(--warning-color), #d97706);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}
.toast-warning .toast-progress-bar { 
    background: linear-gradient(90deg, var(--warning-color), #d97706); 
}

/* آیکون SVG */
.toast-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon svg {
    width: 24px;
    height: 24px;
    color: white;
    animation: iconPop 0.5s ease-out 0.3s both;
}

/* محتوا */
.toast-content { flex: 1; }

.toast-message {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
    font-family: 'Vazir', Tahoma, sans-serif;
    line-height: 1.4;
}

/* دکمه بستن */
.toast-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close svg {
    width: 18px;
    height: 18px;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.toast-close:hover {
    background: #f3f4f6;
    transform: rotate(90deg);
}

.toast-close:hover svg {
    color: #374151;
}

/* نوار پیشرفت */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #e5e7eb;
}

.toast-progress-bar {
    height: 100%;
    width: 100%;
    animation: progressShrink 5s linear forwards;
}

/* درخشش */
.toast-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 60%);
    animation: glowPulse 2s ease-in-out infinite;
    pointer-events: none;
}

/* انیمیشن‌ها */
@keyframes toastSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-100px) scale(0.8);
    }
    60% {
        opacity: 1;
        transform: translateX(-50%) translateY(10px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes iconPop {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    60% { transform: scale(1.2) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes progressShrink {
    0% { width: 100%; }
    100% { width: 0%; }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
}

.toast-closing {
    animation: toastSlideOut 0.4s ease-in forwards !important;
}

@keyframes toastSlideOut {
    0% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-30px) scale(0.9); }
}

.toast-notification:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

@media (max-width: 480px) {
    .toast-notification {
        min-width: auto;
        width: calc(100% - 40px);
        padding: 14px 18px;
    }
    .toast-icon { width: 36px; height: 36px; }
    .toast-icon svg { width: 20px; height: 20px; }
}
            