/* notifications.css */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000; /* Ensure it's above almost everything */
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between multiple toasts */
    align-items: center;
    max-width: 90%; /* Limit width on smaller screens */
}

.toast {
    background-color: #333;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 1em;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    transform: translateY(-20px); /* Start slightly above */
    display: flex;
    align-items: center;
    min-width: 250px; /* Minimum width for readability */
}

.toast.show {
    opacity: 1;
    transform: translateY(0); /* Slide down into view */
}

.toast.hide {
    opacity: 0;
    transform: translateY(-20px); /* Slide up out of view */
}

/* Toast types */
.toast.success {
    background-color: #28a745;
}

.toast.error {
    background-color: #dc3545;
}

.toast.info {
    background-color: #17a2b8;
}

.toast-icon {
    margin-right: 10px;
    font-size: 1.2em;
}

/* Optional: Basic icon styling if using font icons */
.toast-icon.success::before { content: '✓'; }
.toast-icon.error::before { content: '✕'; }
.toast-icon.info::before { content: 'i'; }
