#custom-snackbar-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-snackbar {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 288px;
    max-width: 400px;
    padding: 14px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    background-color: #212121;
    /* latar hitam */
    color: #fff;
    box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),
        0px 6px 10px 0px rgba(0, 0, 0, 0.14),
        0px 1px 18px 0px rgba(0, 0, 0, 0.12);
    animation: snackbarSlideUp 0.25s ease-out;
    position: relative;
    overflow: hidden;
}

/* Mode terang */
/* [data-bs-theme="light"] .custom-snackbar {
    background-color: #fff;
    color: #333;
}

[data-bs-theme="light"] .custom-snackbar .progress {
    background: rgba(0, 0, 0, 0.3);
} */

/* Mode gelap */
/* [data-bs-theme="dark"] .custom-snackbar {
    background-color: #212121;
    color: #fff;
}

[data-bs-theme="dark"] .custom-snackbar .progress {
    background: rgba(255, 255, 255, 0.6);
} */

/* Fallback default */
.custom-snackbar {
    background-color: #212121;
    color: #fff;
}

/* LIGHT THEME → snackbar gelap (seperti Google) */
html[data-bs-theme="light"] .custom-snackbar,
body[data-bs-theme="light"] .custom-snackbar {
    background-color: #212121;
    color: #fff;
}

html[data-bs-theme="light"] .custom-snackbar .progress,
body[data-bs-theme="light"] .custom-snackbar .progress {
    background: rgba(255, 255, 255, 0.6);
}

/* DARK THEME → snackbar terang (kebalikan) */
html[data-bs-theme="dark"] .custom-snackbar,
body[data-bs-theme="dark"] .custom-snackbar {
    background-color: #ffffff;
    color: #1f1f1f;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-bs-theme="dark"] .custom-snackbar .progress,
body[data-bs-theme="dark"] .custom-snackbar .progress {
    background: rgba(0, 0, 0, 0.3);
}

.custom-snackbar .icon {
    font-size: 18px;
    flex-shrink: 0;
}

/* Warna icon sesuai tipe */
.custom-snackbar.error .icon {
    color: #f44336;
}

.custom-snackbar.success .icon {
    color: #4caf50;
}

.custom-snackbar.info .icon {
    color: #2196f3;
}

.custom-snackbar.warning .icon {
    color: #ff9800;
}

.custom-snackbar .progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: rgba(255, 255, 255, 0.6); /* default, akan dioverride JS */
    transition: width 0.05s linear; /* biar halus */
}

@keyframes snackbarSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes snackbarSlideDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(30px);
    }
}

@keyframes progressAnim {
    from {
        width: 100%;
    }

    to {
        width: 0;
    }
}
