/* Fixed container in the top-right corner */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Notification card */
.toast {
    min-width: 250px;
    max-width: 350px;
    padding: 16px;
    border-radius: 6px;
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    border-left: 4px solid #ccc;
}

/* Entry animation */
.toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* Variants based on type */
.toast.success {
    border-left-color: var(--color-success);
}
.toast.success i {
    color: var(--color-success);
}

.toast.error {
    border-left-color: var(--color-danger);
}
.toast.error i {
    color: var(--color-danger);
}

.toast.info {
    border-left-color: var(--color-primary);
}
.toast.info i {
    color: var(--color-primary);
}

/* Responsive Toast */
@media (max-width: 768px) {
    #toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: unset;
        max-width: unset;
        padding: 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    #toast-container {
        top: 8px;
        right: 8px;
        left: 8px;
    }

    .toast {
        padding: 10px;
        font-size: 0.8rem;
        gap: 8px;
        min-width: auto;
    }
}