import React, { useState, useRef, useEffect } from 'react'; import { motion, AnimatePresence } from 'framer-motion'; import { Brain, Heart, Zap, Flame, History, Compass, Bot, Settings, HelpCircle, X, Send, Mic, Sparkles } from 'lucide-react'; // --- Data: Feature Configuration --- const FEATURES = [ { id: 'mood', title: 'Mood Sculptor', desc: 'Transform Emotional States', icon: Brain, color: 'from-blue-600 to-violet-600', text: 'text-violet-400', border: 'border-violet-500/50', shadow: 'shadow-violet-500/50' }, { id: 'empathy', title: 'Empathy Mirror', desc: 'Understand Perspectives', icon: Heart, color: 'from-teal-500 to-emerald-500', text: 'text-emerald-400', border: 'border-emerald-500/50', shadow: 'shadow-emerald-500/50' }, { id: 'reframer', title: 'Cognitive Reframer', desc: 'Challenge Negative Thoughts', icon: Zap, color: 'from-orange-500 to-yellow-500', text: 'text-orange-400', border: 'border-orange-500/50', shadow: 'shadow-orange-500/50' }, { id: 'stress', title: 'Bubble Burster', desc: 'Release Tension', icon: Flame, color: 'from-red-600 to-pink-600', text: 'text-red-400', border: 'border-red-500/50', shadow: 'shadow-red-500/50' }, { id: 'memory', title: 'Memory Harmonizer', desc: 'Integrate Past Experiences', icon: History, color: 'from-indigo-400 to-pink-400', text: 'text-pink-400', border: 'border-pink-400/50', shadow: 'shadow-pink-500/50' }, { id: 'future', title: 'Future Pathfinder', desc: 'Guide Towards Goals', icon: Compass, color: 'from-cyan-500 to-blue-500', text: 'text-cyan-400', border: 'border-cyan-400/50', shadow: 'shadow-cyan-500/50' }, ]; // --- Component: The Active Tool View (New!) --- const InteractionView = ({ feature, onClose }) => { return ( {/* 1. Header */}

{feature.title}

AI Active • Session ID: #8821X

{/* 2. Chat / Interaction Area */}
{/* AI Message */}

Welcome to the {feature.title}.

I am ready to help you process. How are you feeling right now regarding this specific area?

{/* User Message Simulation */}
{/* Avatar Placeholder */}

I'm feeling a bit overwhelmed, honestly. I need to break this down.

{/* 3. Input Console */}