/* PREMIUM TOAST SYSTEM */
#toast-container {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
    width: 95%;
    max-width: 420px;
}

@keyframes toast-enter {
    from {
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.toast {
    pointer-events: auto;
    width: 100%;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 16px 20px;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: toast-enter 0.4s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1), transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.toast:active {
    transform: scale(0.97);
}

.toast.fade-out {
    opacity: 0 !important;
    transform: translateY(-10px) scale(0.95);
    pointer-events: none;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 0 5px currentColor);
}

.toast-message {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* Type Colors */
.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.warning {
    border-left: 4px solid #f59e0b;
}

.toast.info {
    border-left: 4px solid #3b82f6;
}

.toast.success .toast-icon {
    color: #10b981;
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast.warning .toast-icon {
    color: #f59e0b;
}

.toast.info .toast-icon {
    color: #3b82f6;
}

/* Modern Progress Loader */
.toast-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform-origin: left;
    animation: toast-progress 6s linear forwards;
}

@keyframes toast-progress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

@media (max-width: 480px) {
    #toast-container {
        top: 20px;
    }

    .toast {
        border-radius: 14px;
        padding: 12px 16px;
    }

    .toast-message {
        font-size: 13.5px;
    }
}