.rs-toasts-host {
    z-index: 1095 !important;
    width: min(22rem, calc(100vw - 1.25rem));
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rs-toasts-host .toast {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 14px !important;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.94) !important;
    color: rgba(33, 37, 41, 0.92) !important;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.1) !important;
}

[data-bs-theme="dark"] .rs-toasts-host .toast {
    border-color: rgba(255, 255, 255, 0.1) !important;
    background: rgba(30, 30, 36, 0.94) !important;
    color: rgba(248, 249, 250, 0.94) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4) !important;
}

.rs-toasts-host .toast.text-bg-success {
    background: rgba(245, 252, 248, 0.96) !important;
    color: rgba(11, 61, 38, 0.95) !important;
}

[data-bs-theme="dark"] .rs-toasts-host .toast.text-bg-success {
    background: rgba(24, 36, 30, 0.96) !important;
    color: rgba(210, 250, 225, 0.96) !important;
}

.rs-toasts-host .toast.text-bg-danger {
    background: rgba(255, 248, 249, 0.96) !important;
    color: rgba(72, 16, 26, 0.95) !important;
}

[data-bs-theme="dark"] .rs-toasts-host .toast.text-bg-danger {
    background: rgba(40, 26, 30, 0.96) !important;
    color: rgba(255, 218, 222, 0.96) !important;
}

.rs-toasts-host .toast.text-bg-warning {
    background: rgba(255, 252, 242, 0.96) !important;
    color: rgba(62, 44, 0, 0.94) !important;
}

[data-bs-theme="dark"] .rs-toasts-host .toast.text-bg-warning {
    background: rgba(40, 34, 22, 0.96) !important;
    color: rgba(255, 234, 190, 0.95) !important;
}

.rs-toasts-host .toast.text-bg-info {
    background: rgba(244, 251, 255, 0.96) !important;
    color: rgba(8, 58, 72, 0.95) !important;
}

[data-bs-theme="dark"] .rs-toasts-host .toast.text-bg-info {
    background: rgba(22, 34, 40, 0.96) !important;
    color: rgba(200, 240, 255, 0.95) !important;
}

.rs-toasts-host .toast.text-bg-primary {
    background: rgba(245, 248, 255, 0.96) !important;
    color: rgba(16, 40, 95, 0.95) !important;
}

[data-bs-theme="dark"] .rs-toasts-host .toast.text-bg-primary {
    background: rgba(26, 30, 48, 0.96) !important;
    color: rgba(220, 232, 255, 0.96) !important;
}

.rs-toasts-host .toast.text-bg-secondary {
    background: rgba(248, 249, 250, 0.96) !important;
    color: rgba(33, 37, 41, 0.9) !important;
}

[data-bs-theme="dark"] .rs-toasts-host .toast.text-bg-secondary {
    background: rgba(34, 34, 38, 0.96) !important;
    color: rgba(235, 237, 242, 0.93) !important;
}

.rs-toasts-host .toast-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07) !important;
    padding: 0.65rem 0.85rem !important;
    font-weight: 700;
    font-size: 0.8125rem;
    line-height: 1.3;
    align-items: center;
}

[data-bs-theme="dark"] .rs-toasts-host .toast-header {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.rs-toasts-host .toast-header strong,
.rs-toasts-host .toast-header .me-auto {
    font-weight: 800;
}

.rs-toasts-host .toast-header small {
    font-size: 0.75rem;
    opacity: 0.7;
}

.rs-toasts-host .toast-body {
    padding: 0.75rem 0.9rem 0.85rem !important;
    line-height: 1.5;
    font-size: 0.90625rem;
}

.rs-toasts-host .toast-body :last-child {
    margin-bottom: 0;
}

.rs-toasts-host .btn-close {
    width: 1.75rem;
    height: 1.75rem;
    padding: 0.35rem;
    margin: 0 0 0 0.25rem;
    border-radius: 8px;
    opacity: 0.55;
    transition: opacity 0.15s ease, background-color 0.15s ease;
}

.rs-toasts-host .btn-close:hover {
    opacity: 0.9;
    background-color: rgba(15, 23, 42, 0.06);
}

.rs-toasts-host .btn-close:focus-visible {
    opacity: 1;
    outline: 2px solid rgba(122, 85, 255, 0.45);
    outline-offset: 2px;
}

[data-bs-theme="dark"] .rs-toasts-host .btn-close {
    filter: invert(1) grayscale(1);
    opacity: 0.6;
}

[data-bs-theme="dark"] .rs-toasts-host .btn-close:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.08);
}

@media (prefers-reduced-motion: no-preference) {
    .rs-toasts-host .toast.fade.show {
        animation: rs-toast-enter 0.28s ease-out both;
    }
}

@keyframes rs-toast-enter {
    from {
        transform: translate3d(10px, 0, 0);
    }

    to {
        transform: translate3d(0, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .rs-toasts-host .toast.fade.show {
        animation: none;
    }
}
