/* Message Styles - برای پیام‌های خطا، موفقیت و هشدار */

.message-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    min-width: 300px;
    max-width: 500px;
    padding: 18px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideDown 0.3s ease-out;
    direction: rtl;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.message-toast.success {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border: 2px solid #388e3c;
}

.message-toast.error {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    border: 2px solid #c62828;
}

.message-toast.warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border: 2px solid #e65100;
}

.message-toast.info {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    border: 2px solid #1565c0;
}

.message-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
}

.message-content small {
    display: block;
    font-size: 13px;
    opacity: 0.9;
    margin-top: 5px;
}

.message-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
}

.message-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Dark Mode Support */
[data-theme="dark"] .message-toast.success {
    background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%);
}

[data-theme="dark"] .message-toast.error {
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
}

[data-theme="dark"] .message-toast.warning {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
}

[data-theme="dark"] .message-toast.info {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .message-toast {
        left: 20px;
        right: 20px;
        transform: none;
        min-width: auto;
        max-width: none;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

