/* =========================================
   TOAST NOTIFICATION SYSTEM
   ========================================= */

.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.custom-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    max-width: 440px;
    padding: 16px 20px;
    border-radius: 14px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.1);
    pointer-events: all;
    position: relative;
    overflow: hidden;
    animation: toast-slide-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.custom-toast.toast-removing {
    animation: toast-slide-out 0.35s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

/* --- Toast Variants --- */
.custom-toast.toast-success {
    background: linear-gradient(135deg, #059669, #10b981);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.custom-toast.toast-error {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.custom-toast.toast-info {
    background: linear-gradient(135deg, #006eff, #00d2ff);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* --- Toast Icon --- */
.toast-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 14px;
}

/* --- Toast Message --- */
.toast-message {
    flex: 1;
}

/* --- Close Button --- */
.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
    border-radius: 6px;
}

.toast-close:hover {
    color: #fff;
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.1);
}

/* --- Progress Bar --- */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 0 0 14px 14px;
    animation: toast-progress 4s linear forwards;
}

/* --- Animations --- */
@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toast-slide-out {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }
}

@keyframes toast-progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* --- Mobile Responsive --- */
@media (max-width: 575.98px) {
    .toast-container {
        top: 12px;
        right: 12px;
        left: 12px;
    }

    .custom-toast {
        min-width: unset;
        max-width: 100%;
        font-size: 0.9rem;
        padding: 14px 16px;
    }
}
