/* Smart Push Notifications System */

.notifications-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

.notification {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98), rgba(20, 20, 35, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(10px);
    pointer-events: all;
    min-width: 320px;
    animation: slideInRight 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transition: all 0.3s ease;
}

.notification.removing {
    animation: slideOutRight 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    transform: translateX(100%);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
}

.notification:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    animation: scaleIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.1s both;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.notification-icon svg {
    width: 16px;
    height: 16px;
}

.notification-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notification-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.notification-message {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.notification-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: scale(1.1);
}

.notification-close svg {
    width: 14px;
    height: 14px;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--yellow));
    border-radius: 0 0 12px 12px;
    animation: progress linear;
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Notification Types */
.notification.success {
    border-left: 4px solid var(--green);
}

.notification.success .notification-icon {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.1));
    color: var(--green);
}

.notification.success .notification-progress {
    background: var(--green);
}

.notification.error {
    border-left: 4px solid var(--red);
}

.notification.error .notification-icon {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2), rgba(244, 67, 54, 0.1));
    color: var(--red);
}

.notification.error .notification-progress {
    background: var(--red);
}

.notification.warning {
    border-left: 4px solid var(--yellow);
}

.notification.warning .notification-icon {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.1));
    color: var(--yellow);
}

.notification.warning .notification-progress {
    background: var(--yellow);
}

.notification.info {
    border-left: 4px solid var(--primary);
}

.notification.info .notification-icon {
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.2), rgba(255, 153, 51, 0.1));
    color: var(--primary);
}

.notification.info .notification-progress {
    background: linear-gradient(90deg, var(--primary), var(--yellow));
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .notifications-container {
        top: auto;
        bottom: 20px;
        right: 16px;
        left: 16px;
        max-width: none;
    }
    
    .notification {
        min-width: 0;
        width: 100%;
    }
    
    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateY(100%) scale(0.9);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
    
    @keyframes slideOutRight {
        from {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
        to {
            opacity: 0;
            transform: translateY(100%) scale(0.9);
        }
    }
}

/* Notification with action button */
.notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.notification-action-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.notification-action-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--yellow));
    border: none;
    color: white;
}

.notification-action-btn.primary:hover {
    box-shadow: 0 4px 12px rgba(255, 153, 51, 0.3);
}
