/* Toast Notification System */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--premium-gold);
    color: var(--bg-secondary);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 400px;
    animation: slideIn 0.3s ease;
    pointer-events: auto;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
}

.toast .material-symbols-outlined {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast.success {
    background: var(--premium-gold);
    color: var(--bg-secondary);
    border-left: 4px solid #4caf50;
}

.toast.error {
    background: #d32f2f;
    color: white;
    border-left: 4px solid #b71c1c;
}

.toast.warning {
    background: #ff9800;
    color: var(--bg-secondary);
    border-left: 4px solid #f57c00;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast.removing {
    animation: slideOut 0.3s ease forwards;
}

/* RTL Support */
[dir="rtl"] .toast-container {
    right: auto;
    left: 20px;
}

[dir="rtl"] .toast {
    animation: slideInRTL 0.3s ease;
}

[dir="rtl"] .toast.success {
    border-left: none;
    border-right: 4px solid #4caf50;
}

[dir="rtl"] .toast.error {
    border-left: none;
    border-right: 4px solid #b71c1c;
}

[dir="rtl"] .toast.warning {
    border-left: none;
    border-right: 4px solid #f57c00;
}

[dir="rtl"] .toast.removing {
    animation: slideOutRTL 0.3s ease forwards;
}

@keyframes slideInRTL {
    from {
        transform: translateX(-400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRTL {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-400px);
        opacity: 0;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    [dir="rtl"] .toast-container {
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: unset;
        max-width: unset;
        width: 100%;
    }
}