/* Toast Container - positions toasts in the top right */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    /* Above busy overlay (10000) */
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    /* Allow clicks through the container */
}

/* Individual Toast Styling */
.toast-notification {
    pointer-events: auto;
    min-width: 300px;
    max-width: 400px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 5px solid #333;
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: #333;
    opacity: 0;
    animation: slideIn 0.3s forwards;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.hide {
    animation: slideOut 0.3s forwards;
}

/* Toast Variants */
.toast-notification.success {
    border-left-color: #2ecc71;
}

.toast-notification.success .toast-icon {
    color: #2ecc71;
}

.toast-notification.error {
    border-left-color: #e74c3c;
}

.toast-notification.error .toast-icon {
    color: #e74c3c;
}

.toast-notification.info {
    border-left-color: #3498db;
}

.toast-notification.info .toast-icon {
    color: #3498db;
}

.toast-notification.warning {
    border-left-color: #f1c40f;
}

.toast-notification.warning .toast-icon {
    color: #f1c40f;
}

/* Icon and Text */
.toast-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-message {
    flex: 1;
    line-height: 1.4;
    font-weight: 500;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(120%);
        opacity: 0;
    }
}