/* Oasis of Scent — Global Modern Toast & Confirmation System */
.oasis-toast-viewport {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2147483000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(392px, calc(100vw - 28px));
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Plus Jakarta Sans", "Segoe UI", Roboto, sans-serif;
}

@media (max-width: 575.98px) {
    .oasis-toast-viewport {
        top: 12px;
        right: 14px;
        left: 14px;
        width: auto;
    }
}

.oasis-toast {
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px 16px 14px;
    border-radius: 14px;
    background: rgba(255, 253, 250, 0.96);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(50, 62, 1, 0.12);
    box-shadow:
        0 18px 42px -12px rgba(18, 22, 14, 0.18),
        0 4px 14px -3px rgba(18, 22, 14, 0.08);
    color: #18181b;
    transform: translate3d(0, -14px, 0) scale(0.96);
    opacity: 0;
    transition:
        transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.24s ease,
        box-shadow 0.2s ease;
}

.oasis-toast.is-visible {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
}

.oasis-toast.is-leaving {
    transform: translate3d(22px, -4px, 0) scale(0.96);
    opacity: 0;
    pointer-events: none;
}

html[data-theme="dark"] .oasis-toast,
html[data-bs-theme="dark"] .oasis-toast,
body[data-bs-theme="dark"] .oasis-toast {
    background: rgba(24, 26, 23, 0.95);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 20px 46px -12px rgba(0, 0, 0, 0.6),
        0 4px 14px -2px rgba(0, 0, 0, 0.35);
    color: #f4f4f5;
}

.oasis-toast__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.oasis-toast__icon svg {
    width: 19px;
    height: 19px;
}

.oasis-toast--success .oasis-toast__icon {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}
html[data-theme="dark"] .oasis-toast--success .oasis-toast__icon,
html[data-bs-theme="dark"] .oasis-toast--success .oasis-toast__icon {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
}

.oasis-toast--error .oasis-toast__icon {
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
}
html[data-theme="dark"] .oasis-toast--error .oasis-toast__icon,
html[data-bs-theme="dark"] .oasis-toast--error .oasis-toast__icon {
    background: rgba(248, 113, 113, 0.18);
    color: #f87171;
}

.oasis-toast--warning .oasis-toast__icon {
    background: rgba(217, 119, 6, 0.13);
    color: #b45309;
}
html[data-theme="dark"] .oasis-toast--warning .oasis-toast__icon,
html[data-bs-theme="dark"] .oasis-toast--warning .oasis-toast__icon {
    background: rgba(251, 191, 36, 0.18);
    color: #fbbf24;
}

.oasis-toast--info .oasis-toast__icon {
    background: rgba(50, 62, 1, 0.11);
    color: #323e01;
}
html[data-theme="dark"] .oasis-toast--info .oasis-toast__icon,
html[data-bs-theme="dark"] .oasis-toast--info .oasis-toast__icon {
    background: rgba(214, 183, 132, 0.18);
    color: #e7c996;
}

.oasis-toast__body {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 4px;
}

.oasis-toast__title {
    font-size: 13.5px;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0 0 2px 0;
    color: inherit;
}

.oasis-toast__message {
    font-size: 13px;
    line-height: 1.45;
    color: rgba(24, 24, 27, 0.78);
    margin: 0;
    word-break: break-word;
    white-space: pre-line;
}

html[data-theme="dark"] .oasis-toast__message,
html[data-bs-theme="dark"] .oasis-toast__message,
body[data-bs-theme="dark"] .oasis-toast__message {
    color: rgba(244, 244, 245, 0.78);
}

.oasis-toast__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 11px;
}

.oasis-toast__btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}

.oasis-toast__btn:active {
    transform: scale(0.98);
}

.oasis-toast__btn--primary {
    background: #323e01;
    color: #ffffff;
}

.oasis-toast__btn--primary:hover {
    background: #242d01;
}

html[data-theme="dark"] .oasis-toast__btn--primary,
html[data-bs-theme="dark"] .oasis-toast__btn--primary {
    background: #d6b784;
    color: #18181b;
}

.oasis-toast__btn--ghost {
    background: rgba(0, 0, 0, 0.05);
    color: inherit;
    border-color: rgba(0, 0, 0, 0.09);
}

.oasis-toast__btn--ghost:hover {
    background: rgba(0, 0, 0, 0.09);
}

html[data-theme="dark"] .oasis-toast__btn--ghost,
html[data-bs-theme="dark"] .oasis-toast__btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

.oasis-toast__close {
    flex-shrink: 0;
    appearance: none;
    background: transparent;
    border: 0;
    padding: 4px;
    margin: -2px -4px 0 0;
    border-radius: 7px;
    color: rgba(113, 113, 122, 0.85);
    cursor: pointer;
    line-height: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.oasis-toast__close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: inherit;
}

html[data-theme="dark"] .oasis-toast__close:hover,
html[data-bs-theme="dark"] .oasis-toast__close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.oasis-toast__progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2.5px;
    width: 100%;
    transform-origin: left center;
    animation: oasisToastProgress linear forwards;
}

.oasis-toast:hover .oasis-toast__progress {
    animation-play-state: paused;
}

.oasis-toast--success .oasis-toast__progress { background: linear-gradient(90deg, #16a34a, #4ade80); }
.oasis-toast--error .oasis-toast__progress { background: linear-gradient(90deg, #dc2626, #f87171); }
.oasis-toast--warning .oasis-toast__progress { background: linear-gradient(90deg, #d97706, #fbbf24); }
.oasis-toast--info .oasis-toast__progress { background: linear-gradient(90deg, #323e01, #8b9d3b); }

@keyframes oasisToastProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* Hide legacy Toastify / Toastr containers if any script creates one before interception */
.toastify, #toast-container {
    display: none !important;
}

