import React, { useState, useEffect } from 'react'; import { createRoot } from 'react-dom/client'; import { Plus, Inbox, Calendar as CalendarIcon, Settings, CheckCircle, Circle, Trash2, Database, AlertCircle, Clock, ChevronLeft, ChevronRight, ChevronDown, ChevronUp, X, Tag, Save, Zap, PauseCircle, Archive, List, ArrowRightCircle, Grid, Folder, FolderPlus, CornerUpLeft, Briefcase, Layout, PieChart, BrainCircuit, Check } from 'lucide-react'; // --- Constantes --- const CATEGORIES = [ "💻 Trabajo", "🏠 Personal", "💼 Gestión / Administración", "📈 Negocio", "🎯 Marketing", "🤝 Clientes", "💰 Finanzas", "📞 Llamadas", "✉️ Emails", "🛠️ Mantenimiento / Soporte", "📦 Compras / Pendientes", "🎓 Formación" ]; // --- Componentes UI Básicos --- const Button = ({ children, onClick, variant = 'primary', className = '', type = 'button' }) => { const baseStyle = "px-4 py-3 rounded-xl font-medium transition-all duration-200 flex items-center justify-center gap-2 active:scale-95 text-sm"; const variants = { primary: "bg-violet-600 text-white hover:bg-violet-700 shadow-lg shadow-violet-200", secondary: "bg-white border border-[#e7e5e4] text-stone-600 hover:bg-[#faf9f6]", action: "bg-indigo-600 text-white hover:bg-indigo-700 shadow-md shadow-indigo-200", danger: "bg-red-50 text-red-600 hover:bg-red-100", ghost: "bg-transparent text-stone-500 hover:text-stone-900", icon: "p-2 rounded-full hover:bg-[#faf9f6] text-stone-600" }; return ( ); }; const Input = ({ label, value, onChange, placeholder, type = "text", className = "" }) => (
{label && }
); const TextArea = ({ label, value, onChange, placeholder }) => (
{label && }