/* Trulife toast notifications — restyles toastr (success / error / warning / info) site-wide. Load after toastr.min.css.
   Modern dark-glass card with a glowing type icon and a gradient timer bar. */
#toast-container.toast-top-right { top: 18px; right: 18px; }
#toast-container > div.toast {
    --tt-c: 34, 197, 94; --tt-c2: 16, 185, 129;
    position: relative; overflow: hidden; isolation: isolate;
    width: 300px; max-width: calc(100vw - 32px);
    margin: 0 0 10px; padding: 11px 34px 13px 54px;
    border-radius: 16px; opacity: 1;
    background: rgba(17, 24, 39, .9) !important; background-image: none !important;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 16px 40px rgba(2, 6, 23, .35), inset 0 1px 0 rgba(255, 255, 255, .06);
    -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
    color: #cbd5e1; font-family: inherit;
    animation: tt-in .45s cubic-bezier(.16, 1, .3, 1);
}
/* soft colour glow from the icon side */
#toast-container > div.toast .toast-title::before {
    content: ""; position: absolute; z-index: -1; left: -30px; top: -40px; width: 140px; height: 140px; border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--tt-c), .35), rgba(var(--tt-c), 0) 70%);
    pointer-events: none;
}
#toast-container > div.toast:hover { opacity: 1; cursor: default; transform: translateY(-1px); box-shadow: 0 20px 46px rgba(2, 6, 23, .42), inset 0 1px 0 rgba(255, 255, 255, .06); }
#toast-container > div.toast-error { --tt-c: 248, 113, 113; --tt-c2: 239, 68, 68; }
#toast-container > div.toast-warning { --tt-c: 251, 191, 36; --tt-c2: 245, 158, 11; }
#toast-container > div.toast-info { --tt-c: 96, 165, 250; --tt-c2: 59, 130, 246; }

/* icon: gradient squircle with a glow ring */
#toast-container > div.toast::before {
    content: ""; position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px; border-radius: 10px;
    background: linear-gradient(135deg, rgb(var(--tt-c)), rgb(var(--tt-c2)));
    box-shadow: 0 0 0 4px rgba(var(--tt-c), .16), 0 6px 16px rgba(var(--tt-c), .45);
}
#toast-container > div.toast::after {
    content: ""; position: absolute; left: 21px; top: 50%; transform: translateY(-50%);
    width: 14px; height: 14px; background: #fff;
    -webkit-mask: var(--tt-icon) center / contain no-repeat; mask: var(--tt-icon) center / contain no-repeat;
}
#toast-container > div.toast-success { --tt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
#toast-container > div.toast-error { --tt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 7L7 17M7 7l10 10'/%3E%3C/svg%3E"); }
#toast-container > div.toast-warning { --tt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6v7M12 18h.01'/%3E%3C/svg%3E"); }
#toast-container > div.toast-info { --tt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 11v7M12 6h.01'/%3E%3C/svg%3E"); }

#toast-container .toast-title { color: #fff; font-weight: 600; font-size: .84rem; letter-spacing: .01em; line-height: 1.25; margin-bottom: 2px; }
#toast-container .toast-message { color: #94a3b8; font-size: .76rem; line-height: 1.4; word-wrap: break-word; }
#toast-container .toast-message::first-letter { text-transform: uppercase; }
#toast-container .toast-message a { color: rgb(var(--tt-c)); font-weight: 600; }

#toast-container .toast-close-button {
    position: absolute; top: 9px; right: 9px;
    width: 20px; height: 20px; border-radius: 50%;
    display: grid; place-items: center; padding: 0;
    color: #fff; opacity: 0; text-shadow: none; font-size: 14px; font-weight: 400; line-height: 1;
    background: rgba(255, 255, 255, .08); transition: opacity .2s, background .2s;
}
#toast-container > div.toast:hover .toast-close-button { opacity: .7; }
#toast-container .toast-close-button:hover { opacity: 1 !important; background: rgba(255, 255, 255, .18); color: #fff; }

/* gradient timer bar */
#toast-container .toast-progress { height: 3px; left: 0; bottom: 0; opacity: 1; border-radius: 0 3px 3px 0;
    background: linear-gradient(90deg, rgb(var(--tt-c2)), rgb(var(--tt-c))); box-shadow: 0 0 10px rgba(var(--tt-c), .7); }

@keyframes tt-in { 0% { opacity: 0; transform: translateX(28px) scale(.94); filter: blur(4px); } 100% { opacity: 1; transform: none; filter: none; } }
@media (hover: none) { #toast-container .toast-close-button { opacity: .7; } }
@media (max-width: 575.98px) {
    #toast-container.toast-top-right { right: 12px; left: 12px; top: 12px; }
    #toast-container > div.toast { width: auto; }
}
