/* Toast Notification Component — the /app "fb-toast" design, copied from
   assets/partials/css/layout.css so the home page and the old dashboard pages show
   the exact same toast. Rendered by panel/js/toaster-v2.js (port of showToast() in
   assets/partials/js/common.js), which also replaces the old jquery.toaster show_toast(). */
.fb-toast-container {
    position: fixed;
    top: 70px;
    right: 25px;
    width: 440px;
    max-width: calc(100vw - 40px);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.fb-toast {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    margin: 0 0 4px;
    opacity: 0;
    transform: translateY(-10px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    pointer-events: auto;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.fb-toast--success {
    background-color: #EDF8EF;
    color: #2E8540;
}

.fb-toast--success .fb-toast__icon {
    background-color: #43A047;
}

.fb-toast--warning {
    background-color: #FFF8EE;
    color: #D97706;
}

.fb-toast--warning .fb-toast__icon {
    background-color: #EAA023;
}

.fb-toast--error,
.fb-toast--danger {
    background-color: #FCEAEA;
    color: #D92D20;
}

.fb-toast--error .fb-toast__icon,
.fb-toast--danger .fb-toast__icon {
    background-color: #E5484D;
}

.fb-toast--info {
    background-color: #EAF2FE;
    color: #2E7BE0;
}

.fb-toast--info .fb-toast__icon {
    background-color: #2E7BE0;
}

.fb-toast__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.fb-toast__icon svg,
.fb-toast__icon img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1); /* #FFFFFF */
    display: block;
}

.fb-toast__text {
    flex: 1;
    color: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    word-break: break-word;
}

.fb-toast__close {
    background: transparent;
    border: none;
    padding: 0;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: inherit;
    opacity: 0.9;
    line-height: 1;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.fb-toast__close svg,
.fb-toast__close img {
    width: 20px;
    height: 20px;
    display: block;
}

.fb-toast--success .fb-toast__close svg,
.fb-toast--success .fb-toast__close img {
    filter: brightness(0) saturate(100%) invert(41%) sepia(51%) saturate(830%) hue-rotate(82deg) brightness(96%) contrast(89%);
}

.fb-toast--warning .fb-toast__close svg,
.fb-toast--warning .fb-toast__close img {
    filter: brightness(0) saturate(100%) invert(52%) sepia(73%) saturate(1840%) hue-rotate(14deg) brightness(93%) contrast(95%);
}

.fb-toast--error .fb-toast__close svg,
.fb-toast--error .fb-toast__close img,
.fb-toast--danger .fb-toast__close svg,
.fb-toast--danger .fb-toast__close img {
    filter: brightness(0) saturate(100%) invert(24%) sepia(92%) saturate(3133%) hue-rotate(349deg) brightness(87%) contrast(93%);
}

.fb-toast--info .fb-toast__close svg,
.fb-toast--info .fb-toast__close img {
    filter: brightness(0) saturate(100%) invert(42%) sepia(92%) saturate(1842%) hue-rotate(201deg) brightness(94%) contrast(92%);
}

.fb-toast__close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* anything the old jquery.toaster plugin might still render */
#toaster {
    display: none !important;
}
