body { font-family: Arial, sans-serif; }

.toast-modern-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999999;
}

/* Layout utama */
.toast-modern {
    width: 418px;
    height: 300px;
    background: #ffffff;
    border-radius: 16px;
    padding: 35px 26px 115px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    display: none;
    animation: zoomBounce 0.45s cubic-bezier(0.22, 1.5, 0.36, 1);
    position: relative;
    overflow: visible;
}

@keyframes zoomBounce {
    0% { transform: scale(0.2); opacity: 0; }
    55% { transform: scale(1.25); opacity: 1; }
    100% { transform: scale(1); }
}

/* Icon area */
.toast-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 22px auto;
}

.toast-icon svg {
    width: 58px;
    height: 58px;
    stroke-width: 2 !important;
}

.glow { filter: drop-shadow(0 0 6px rgba(0,0,0,0.25)); }

.stroke-animate {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: drawStroke .45s ease forwards;
}

@keyframes drawStroke { to { stroke-dashoffset: 0; } }

.toast-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.toast-message {
    font-size: 18px;
    margin-bottom: 26px;
}

.toast-ok-btn {
    background: #007bff !important;
    color: #fff !important;
    padding: 6px 18px !important;
    border-radius: 8px !important;
    border: none !important;
    font-size: 14px !important;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
    z-index: 10;
    position: relative;
}

.toast-ok-btn:hover {
    background: #0a84ff !important;
    transform: translateY(-1px);
}

/* Progress bar di bawah */
.progress-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 6px;
    width: 100%;
    transform-origin: left;
    animation: progressBottomAnim 2s linear forwards;
}

@keyframes progressBottomAnim {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* Warna Tema */
.success .toast-icon { background: #e8f9ef; }
.info .toast-icon { background: #e6f0ff; }
.warning .toast-icon { background: #fff6e1; }
.danger .toast-icon, 
.error .toast-icon { background: #ffeaea; }

.success svg { stroke: #28a745; }
.info svg { stroke: #0d6efd; }
.warning svg { stroke: #ffb300; }
.danger svg,
.error svg { stroke: #e63946; }

/* ✅ Progress bar mengikuti warna icon (UPDATE) */
.toast-modern.success .progress-bottom { background: #28a745; }
.toast-modern.info .progress-bottom { background: #0d6efd; }
.toast-modern.warning .progress-bottom { background: #ffb300; }
.toast-modern.danger .progress-bottom,
.toast-modern.error .progress-bottom { background: #e63946; }

