/**
 * Toast Notification Styles
 * Used by the favourites system and can be used elsewhere
 */

.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 9999;
    animation: slideInRight 0.3s ease-out;
    min-width: 280px;
    max-width: 400px;
}

.toast-notification.success {
    border-left: 4px solid #28a745;
}

.toast-notification.error {
    border-left: 4px solid #dc3545;
}

.toast-notification i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-notification.success i {
    color: #28a745;
}

.toast-notification.error i {
    color: #dc3545;
}

.toast-notification .toast-content {
    flex: 1;
    min-width: 0;
}

.toast-notification .toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
}

.toast-notification .toast-message {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast-notification.removing {
    animation: slideOutRight 0.3s ease-out forwards;
}

/* Dark theme support for toast */
.theme-dark .toast-notification {
    background: #2d3748;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.theme-dark .toast-notification .toast-title {
    color: #e2e8f0;
}

.theme-dark .toast-notification .toast-message {
    color: #cbd5e0;
}

/* Row removal animation for favourites list */
@keyframes fadeOutRow {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

.removing-row {
    animation: fadeOutRow 0.3s ease-out forwards;
}

/* Mobile responsive adjustments */
@media (max-width: 576px) {
    .toast-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}
