/* ============================================
   TOAST NOTIFICATION SYSTEM - NEON GLOW
   LearnVaultX Production Upgrade
   ============================================ */

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.toast {
    background: rgba(16, 22, 51, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.toast.success {
    border: 1px solid rgba(0, 255, 136, 0.4);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3), 0 8px 32px rgba(0, 0, 0, 0.5);
}

.toast.success::before {
    background: linear-gradient(180deg, #00ff88, #00e5ff);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.toast.error {
    border: 1px solid rgba(255, 0, 110, 0.4);
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.3), 0 8px 32px rgba(0, 0, 0, 0.5);
}

.toast.error::before {
    background: linear-gradient(180deg, #ff006e, #ff4d94);
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.5);
}

.toast.warning {
    border: 1px solid rgba(255, 165, 0, 0.4);
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.3), 0 8px 32px rgba(0, 0, 0, 0.5);
}

.toast.warning::before {
    background: linear-gradient(180deg, #ffa500, #ffcd39);
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
}

.toast.info {
    border: 1px solid rgba(77, 163, 255, 0.4);
    box-shadow: 0 0 20px rgba(77, 163, 255, 0.3), 0 8px 32px rgba(0, 0, 0, 0.5);
}

.toast.info::before {
    background: linear-gradient(180deg, #4DA3FF, #67E8F9);
    box-shadow: 0 0 10px rgba(77, 163, 255, 0.5);
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.toast-content {
    flex: 1;
    color: #EAF0FF;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 13px;
    color: #A8B0D8;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #A8B0D8;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    width: 100%;
    transform-origin: left;
    animation: progressBar 3s linear forwards;
}

.toast.success .toast-progress {
    background: linear-gradient(90deg, #00ff88, #00e5ff);
}

.toast.error .toast-progress {
    background: linear-gradient(90deg, #ff006e, #ff4d94);
}

.toast.warning .toast-progress {
    background: linear-gradient(90deg, #ffa500, #ffcd39);
}

.toast.info .toast-progress {
    background: linear-gradient(90deg, #4DA3FF, #67E8F9);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

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

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@keyframes progressBar {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

.toast.removing {
    animation: slideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }
}

/* Stacking Effect */
#toast-container .toast:nth-child(n+4) {
    opacity: 0.8;
    transform: scale(0.95) translateY(-8px);
}

#toast-container .toast:nth-child(n+5) {
    display: none;
}