/* Toast notification */
.toast {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    min-width: 320px;
    max-width: 600px;
    padding: 14px 44px 14px 20px;
    border-radius: 0 0 8px 8px;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: toast-slide-down 0.4s ease-out;
}

.toast--success {
    background-color: #16a34a;
}

.toast--error {
    background-color: #dc2626;
}

.toast__message {
    display: block;
}

.toast__close {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    padding: 4px;
}

.toast__close:hover {
    opacity: 1;
}

.toast--hide {
    animation: toast-fade-out 0.4s ease-in forwards;
}

@keyframes toast-slide-down {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes toast-fade-out {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-100%);
    }
}
