/* Toasts selaras palet */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px
}

.toast {
    padding: 12px 16px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0;
    transform: translateX(100%);
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px
}

.toast.show {
    opacity: 1;
    transform: translateX(0)
}

.toast.hide {
    opacity: 0;
    transform: translateX(100%)
}

.toast-success {
    background-color: var(--_ok);
    border-left: 4px solid #15803d
}

.toast-error {
    background-color: var(--_bad);
    border-left: 4px solid #991b1b
}

.toast-warning {
    background-color: var(--_warn);
    border-left: 4px solid #b45309;
    color: #111
}

.toast-info {
    background: linear-gradient(135deg, var(--_brand), var(--_brand2));
    border-left: 4px solid rgba(255, 255, 255, .35)
}

.toast-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    cursor: pointer;
    margin-left: 10px;
    opacity: .7;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center
}

.toast-close:hover {
    opacity: 1
}

.toast-content {
    flex: 1
}

@media (max-width:768px) {
    .toast-container {
        left: 20px;
        right: 20px;
        max-width: none
    }

    .toast {
        min-width: auto;
        width: 100%
    }
}