/* ── Forever Sabah Snackbar / Toast Notification System ── */

.fs-snackbar-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    pointer-events: none;
}

.fs-snackbar {
    pointer-events: all;
    min-width: 320px;
    max-width: 440px;
    padding: 14px 20px 14px 16px;
    border-radius: 12px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: #fff;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    transform: translateX(120%);
    animation: fs-snackbar-in 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    position: relative;
    overflow: hidden;
    line-height: 1.45;
}

.fs-snackbar.dismissing {
    animation: fs-snackbar-out 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ── Type colors ── */
.fs-snackbar--success { background: #0d6b4e; }
.fs-snackbar--error   { background: #b91c1c; }
.fs-snackbar--warning { background: #b45309; }
.fs-snackbar--info    { background: #1e5a5a; }

/* ── Icon ── */
.fs-snackbar-icon {
    font-size: 1.15rem;
    margin-top: 1px;
    flex-shrink: 0;
    opacity: 0.92;
}

/* ── Message ── */
.fs-snackbar-msg {
    flex: 1;
}

/* ── Close button ── */
.fs-snackbar-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 1.15rem;
    padding: 0;
    margin-left: auto;
    flex-shrink: 0;
    transition: color 0.2s;
    line-height: 1;
}
.fs-snackbar-close:hover {
    color: #fff;
}

/* ── Progress bar ── */
.fs-snackbar-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 0 0 12px 12px;
    animation: fs-snackbar-progress linear forwards;
}

/* ── Animations ── */
@keyframes fs-snackbar-in {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

@keyframes fs-snackbar-out {
    from { transform: translateX(0);    opacity: 1; }
    to   { transform: translateX(120%); opacity: 0; }
}

@keyframes fs-snackbar-progress {
    from { width: 100%; }
    to   { width: 0%; }
}

/* ── Mobile: full-width at bottom ── */
@media (max-width: 480px) {
    .fs-snackbar-container {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
    .fs-snackbar {
        min-width: unset;
        max-width: unset;
        width: 100%;
    }
}
