/* ==================================================
   PREMIUM TOASTER – GLASS + GLOW
================================================== */

#toast-container,
.toast-container {
    /* position: fixed; */
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    z-index: 99999 !important;
    pointer-events: none;
}

/* ---------- Base Toast ---------- */
.toast {
    min-width: 320px;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    backdrop-filter: blur(14px);
    background: rgba(20, 20, 20, 0.55);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    animation: toastSlideIn 0.45s cubic-bezier(.22,1,.36,1);
}

/* ---------- Toast Body ---------- */
.toast .toast-body {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.25rem;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
}

/* ---------- Icon ---------- */
.toast .toast-body i {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.6));
}

/* ---------- Close Button ---------- */
.toast .btn-close {
    filter: invert(1);
    opacity: 0.6;
}
.toast .btn-close:hover {
    opacity: 1;
}

/* ---------- Progress Bar ---------- */
.toast .progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
}

.toast .progress-bar {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.9),
        rgba(255,255,255,0.4)
    );
    animation: toastProgress 2.8s linear forwards;
}

/* ==================================================
   VARIANTS WITH GLOW
================================================== */

.toast-success {
    background: linear-gradient(135deg, #0f9d58, #34c759);
    box-shadow:
        0 0 0 rgba(0,0,0,0),
        0 0 25px rgba(52, 199, 89, 0.6);
}

.toast-error {
    background: linear-gradient(135deg, #dc3545, #ff4d4f);
    box-shadow:
        0 0 25px rgba(255, 77, 79, 0.6);
}

.toast-warning {
    background: linear-gradient(135deg, #ffb703, #fb8500);
    box-shadow:
        0 0 25px rgba(251, 133, 0, 0.6);
}

.toast-info {
    background: linear-gradient(135deg, #0dcaf0, #2563eb);
    box-shadow:
        0 0 25px rgba(37, 99, 235, 0.6);
}

/* ==================================================
   ANIMATIONS
================================================== */

@keyframes toastSlideIn {
    from {
        transform: translateX(120%) scale(0.85);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes toastProgress {
    from { width: 100%; }
    to   { width: 0%; }
}
