/**
 * Toast Notifications Styles
 */

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 500px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

[dir="rtl"] .toast {
    right: auto;
    left: 20px;
    transform: translateX(-400px);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
}

.toast-icon {
    font-size: var(--font-xl);
    line-height: 1;
}

.toast-message {
    flex: 1;
    font-size: var(--font-base);
    color: var(--color-dark);
}

.toast-close {
    background: none;
    border: none;
    font-size: var(--font-2xl);
    color: var(--color-gray-text);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color var(--transition-base);
}

.toast-close:hover {
    color: var(--color-dark);
}

.toast-success {
    border-left: 4px solid var(--color-success);
}

.toast-error {
    border-left: 4px solid var(--color-error);
}

.toast-warning {
    border-left: 4px solid var(--color-warning);
}

.toast-info {
    border-left: 4px solid var(--color-primary);
}

[dir="rtl"] .toast-success,
[dir="rtl"] .toast-error,
[dir="rtl"] .toast-warning,
[dir="rtl"] .toast-info {
    border-left: none;
    border-right: 4px solid;
}

/* Mobile */
@media (max-width: 768px) {
    .toast {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
        transform: translateY(-100px);
    }
    
    [dir="rtl"] .toast {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }
    
    .toast.show {
        transform: translateY(0);
    }
}

