/* Container for all toasts */
.toaster-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1050; /* Bootstrap’s modals use 1050, so this is safe */
    pointer-events: none; /* Let clicks pass through empty spaces */
}

/* Individual toast */
.my-toast {
    pointer-events: auto; /* Enable clicks on toast itself */
    padding: 12px 20px;
    border-radius: 6px;
    min-width: 240px;
    max-width: 320px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    user-select: none;
    animation: slideIn 0.3s ease forwards, fadeOut 0.3s ease 3s forwards;
    position: relative;
    cursor: default;
}

/* Toast variants */
.my-toast.success {
    background-color: #28a745; /* Bootstrap green */
}

.my-toast.error {
    background-color: #dc3545; /* Bootstrap red */
}

.my-toast.info {
    background-color: #17a2b8; /* Bootstrap cyan */
}

.my-toast.warning {
    background-color: #ffc107; /* Bootstrap yellow */
    color: #212529; /* Dark text on yellow */
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}
