﻿/* اضافه کردن این CSS به _Layout.cshtml در قسمت head */
/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    direction: rtl;
}

.toast-notification {
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    font-family: "iran_sans" !important;
    color: white;
    position: relative;
    display: flex;
    align-items: center;
}

    .toast-notification.show {
        opacity: 1;
        transform: translateX(0);
    }

.toast-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-left: 4px solid #155724;
}

.toast-error {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    border-left: 4px solid #721c24;
}

.toast-warning {
    background: linear-gradient(135deg, #ffc107, #f39c12);
    border-left: 4px solid #856404;
    color: #212529;
}

.toast-info {
    background: linear-gradient(135deg, #17a2b8, #3498db);
    border-left: 4px solid #0c5460;
}

.toast-icon {
    font-size: 18px;
    margin-left: 12px;
    flex-shrink: 0;
}

.toast-message {
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    opacity: 0.8;
    cursor: pointer;
    padding: 0;
    margin-right: 12px;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

    .toast-close:hover {
        opacity: 1;
    }

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 0 0 8px 8px;
    transition: width linear;
}

/* انیمیشن pulse برای آیکون */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.toast-success .toast-icon {
    animation: pulse 0.6s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .toast-container {
        right: 10px;
        left: 10px;
        top: 10px;
    }

    .toast-notification {
        min-width: auto;
        max-width: none;
    }
}



