.toast-stack {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    width: 320px;
    max-width: calc(100vw - 40px);
    pointer-events: none;
}

.toast-notification {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #e5eaf5;
    box-shadow: 0 4px 16px rgba(31, 64, 120, 0.12);
    border-left-width: 4px;
    border-left-style: solid;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast-notification--visible {
    opacity: 1;
    transform: translateY(0);
}

.toast-notification--hiding {
    opacity: 0;
    transform: translateY(-4px);
}

.toast-notification--success {
    border-left-color: #16a34a;
}

.toast-notification--error {
    border-left-color: #dc2626;
}

.toast-notification--warning {
    border-left-color: #d97706;
}

.toast-notification__icon {
    flex-shrink: 0;
    font-size: 1.15rem;
    line-height: 1.35;
}

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

.toast-notification--error .toast-notification__icon {
    color: #dc2626;
}

.toast-notification--warning .toast-notification__icon {
    color: #d97706;
}

.toast-notification__message {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding-top: 1px;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4;
    color: #111827;
}

.toast-notification__close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin: -2px -4px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9ca3af;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 0.25rem;
}

.toast-notification__close:hover {
    color: #6b7280;
    background: #f3f4f6;
}

@media (max-width: 991.98px) {
    .toast-stack {
        top: calc(56px + 20px);
    }
}
