/* Ooznest toast patterns */

#toast-container {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2147483647;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 240px;
    padding: 12px 14px;
    border: 1.5px solid #77cc00;
    border-radius: 8px;
    background: #f4f9ed;
    color: #3b6b00;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(13, 31, 34, 0.1);
    animation: toast-in 0.25s ease-out;
    pointer-events: auto;
}

.toast-msg .toast-close {
    margin-left: auto;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    opacity: 0.6;
    color: currentColor;
    transition: opacity 0.15s;
}

.toast-msg .toast-close:hover {
    opacity: 1;
}

.toast-msg > [data-lucide] {
    color: currentColor;
    flex-shrink: 0;
}

.toast-msg.success {
    background: #f4f9ed;
    border-color: #77cc00;
    color: #3b6b00;
}

.toast-msg.error {
    background: #fdf0ef;
    border-color: #b41b13;
    color: #7a0f0a;
}

.toast-msg.info {
    background: #f4fafb;
    border-color: var(--oz-primary);
    color: var(--oz-secondary-dark);
}

.toast-msg.warning {
    background: #fff9ed;
    border-color: #f2b23b;
    color: #935d00;
}

.toast-msg.out {
    animation: toast-out 0.3s ease-in forwards;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-8px) scale(0.95);
    }
}

@media (max-width: 768px) {
    .toast-msg {
        min-width: min(320px, calc(100vw - 40px));
    }
}
