
        /* CSS Reset & Base */
        *, *::before, *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            /* Dark Mode Colors (Default) */
            --bg-primary: #020617;
            --bg-secondary: #0f172a;
            --bg-tertiary: #1e293b;
            --bg-elevated: rgba(30, 41, 59, 0.8);
            --bg-glass: rgba(15, 23, 42, 0.85);
            --bg-input: #0f172a;
            
            --text-primary: #f8fafc;
            --text-secondary: #e2e8f0;
            --text-tertiary: #94a3b8;
            --text-muted: #64748b;
            --text-placeholder: #475569;
            
            --accent-primary: #6366f1;
            --accent-secondary: #8b5cf6;
            --accent-tertiary: #ec4899;
            --accent-success: #10b981;
            --accent-warning: #f59e0b;
            --accent-danger: #ef4444;
            
            --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
            --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
            --gradient-success: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
            --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
            
            --border-color: rgba(148, 163, 184, 0.15);
            --border-hover: rgba(99, 102, 241, 0.4);
            --shadow-color: rgba(0, 0, 0, 0.4);
            --glow-color: rgba(99, 102, 241, 0.25);
            
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
            --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.6);
            --shadow-glow: 0 0 40px var(--glow-color);
            --shadow-inner: inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
            
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --radius-xl: 24px;
            --radius-2xl: 32px;
            
            --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
            --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
            --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
            --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        [data-theme="light"] {
            /* Light Mode Colors - Professional & Soft */
            --bg-primary: #f8fafc;
            --bg-secondary: #ffffff;
            --bg-tertiary: #f1f5f9;
            --bg-elevated: rgba(255, 255, 255, 0.9);
            --bg-glass: rgba(255, 255, 255, 0.85);
            --bg-input: #ffffff;
            
            --text-primary: #0f172a;
            --text-secondary: #334155;
            --text-tertiary: #475569;
            --text-muted: #64748b;
            --text-placeholder: #94a3b8;
            
            /* Softer accents for light mode */
            --accent-primary: #4f46e5;
            --accent-secondary: #7c3aed;
            --accent-tertiary: #db2777;
            --accent-success: #059669;
            --accent-warning: #d97706;
            --accent-danger: #dc2626;
            
            --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
            --gradient-secondary: linear-gradient(135deg, #0891b2 0%, #2563eb 100%);
            --gradient-success: linear-gradient(135deg, #059669 0%, #0891b2 100%);
            --gradient-warning: linear-gradient(135deg, #d97706 0%, #dc2626 100%);
            
            --border-color: rgba(148, 163, 184, 0.25);
            --border-hover: rgba(79, 70, 229, 0.4);
            --shadow-color: rgba(0, 0, 0, 0.08);
            --glow-color: rgba(79, 70, 229, 0.2);
            
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.08);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
            --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
            --shadow-glow: 0 0 30px var(--glow-color);
            --shadow-inner: inset 0 1px 0 0 rgba(255, 255, 255, 0.8);
        }

        html {
            scroll-behavior: smooth;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            min-height: 100vh;
            line-height: 1.6;
            overflow-x: hidden;
            transition: background-color var(--transition-slow), color var(--transition-slow);
        }

        /* Animated Mesh Gradient Background */
        .ambient-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -2;
            overflow: hidden;
            background: var(--bg-primary);
            transition: background var(--transition-slow);
        }

        .mesh-gradient {
            position: absolute;
            width: 200%;
            height: 200%;
            top: -50%;
            left: -50%;
            background: 
                radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.12) 0px, transparent 50%),
                radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.12) 0px, transparent 50%),
                radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.1) 0px, transparent 50%),
                radial-gradient(at 0% 100%, rgba(6, 182, 212, 0.1) 0px, transparent 50%);
            animation: meshRotate 30s linear infinite;
        }

        [data-theme="light"] .mesh-gradient {
            background: 
                radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.08) 0px, transparent 50%),
                radial-gradient(at 100% 0%, rgba(124, 58, 237, 0.08) 0px, transparent 50%),
                radial-gradient(at 100% 100%, rgba(219, 39, 119, 0.06) 0px, transparent 50%),
                radial-gradient(at 0% 100%, rgba(8, 145, 178, 0.06) 0px, transparent 50%);
        }

        @keyframes meshRotate {
            0% { transform: rotate(0deg) scale(1); }
            50% { transform: rotate(180deg) scale(1.1); }
            100% { transform: rotate(360deg) scale(1); }
        }

        /* Noise Texture Overlay */
        .noise-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            opacity: 0.02;
            pointer-events: none;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
        }

        [data-theme="light"] .noise-overlay {
            opacity: 0.015;
        }

        /* Cursor Effects */
        .cursor-glow {
            position: fixed;
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
            z-index: -1;
            transform: translate(-50%, -50%);
            transition: opacity var(--transition-base), background var(--transition-slow);
            opacity: 0;
        }

        body:hover .cursor-glow {
            opacity: 1;
        }

        /* App Container */
        .app-wrapper {
            max-width: 900px;
            margin: 0 auto;
            padding: 24px;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            position: relative;
        }

        /* Header Section */
        .app-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 32px;
            padding: 16px 0;
            position: relative;
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .brand-logo {
            width: 56px;
            height: 56px;
            background: var(--gradient-primary);
            border-radius: var(--radius-lg);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow-glow);
            animation: logoFloat 6s ease-in-out infinite;
        }

        .brand-logo i {
            color: white;
            font-size: 28px;
            z-index: 2;
            position: relative;
        }

        .brand-logo::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
            animation: shimmer 3s infinite;
        }

        @keyframes shimmer {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        @keyframes logoFloat {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            25% { transform: translateY(-5px) rotate(2deg); }
            75% { transform: translateY(-5px) rotate(-2deg); }
        }

        .brand-info h1 {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.75rem;
            font-weight: 700;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: -0.02em;
        }

        .brand-info p {
            color: var(--text-muted);
            font-size: 0.875rem;
            font-weight: 500;
            margin-top: 2px;
        }

        /* Theme Toggle - Premium Style */
        .theme-switch {
            position: relative;
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            border-radius: 50px;
            padding: 4px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 20px 6px 6px;
            transition: var(--transition-base);
            overflow: hidden;
            box-shadow: var(--shadow-inner);
        }

        [data-theme="light"] .theme-switch {
            background: #e2e8f0;
            border-color: rgba(148, 163, 184, 0.3);
        }

        .theme-switch:hover {
            border-color: var(--border-hover);
            box-shadow: 0 0 20px var(--glow-color), var(--shadow-inner);
        }

        .theme-switch-slider {
            position: absolute;
            left: 4px;
            width: 36px;
            height: 36px;
            background: var(--gradient-primary);
            border-radius: 50%;
            transition: transform var(--transition-bounce);
            z-index: 0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }

        [data-theme="light"] .theme-switch-slider {
            transform: translateX(44px);
        }

        .theme-icon {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            position: relative;
            z-index: 1;
            transition: var(--transition-base);
            color: var(--text-primary);
        }

        .theme-icon.moon { opacity: 0.5; }
        .theme-icon.sun { opacity: 1; }

        [data-theme="light"] .theme-icon.moon { opacity: 1; color: #475569; }
        [data-theme="light"] .theme-icon.sun { opacity: 0.5; color: #f59e0b; }

        /* Main Card - Glassmorphism */
        .main-card {
            background: var(--bg-glass);
            backdrop-filter: blur(20px) saturate(180%);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-2xl);
            padding: 40px;
            box-shadow: var(--shadow-xl), var(--shadow-inner);
            position: relative;
            overflow: hidden;
            transition: background var(--transition-slow), border-color var(--transition-slow), box-shadow var(--transition-slow);
        }

        [data-theme="light"] .main-card {
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 
                        0 10px 15px -3px rgba(0, 0, 0, 0.08),
                        0 20px 25px -5px rgba(0, 0, 0, 0.05),
                        inset 0 1px 0 0 rgba(255, 255, 255, 0.8);
            border-color: rgba(148, 163, 184, 0.2);
        }

        .main-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        }

        [data-theme="light"] .main-card::before {
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
        }

        /* Input Section - Floating Style */
        .input-section {
            margin-bottom: 32px;
            position: relative;
        }

        .input-wrapper {
            display: flex;
            gap: 12px;
            background: var(--bg-input);
            border: 2px solid var(--border-color);
            border-radius: var(--radius-xl);
            padding: 8px;
            transition: var(--transition-base);
            position: relative;
            box-shadow: var(--shadow-inner);
        }

        [data-theme="light"] .input-wrapper {
            box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.03);
            border-color: rgba(148, 163, 184, 0.3);
        }

        .input-wrapper:focus-within {
            border-color: var(--accent-primary);
            box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), var(--shadow-glow);
            transform: translateY(-2px);
        }

        [data-theme="light"] .input-wrapper:focus-within {
            box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08), var(--shadow-glow);
        }

        .input-field {
            flex: 1;
            background: transparent;
            border: none;
            padding: 16px 20px;
            color: var(--text-primary);
            font-size: 1rem;
            font-family: inherit;
            outline: none;
            font-weight: 500;
        }

        .input-field::placeholder {
            color: var(--text-placeholder);
            font-weight: 400;
        }

        .priority-select-wrapper {
            position: relative;
            min-width: 150px;
        }

        .priority-select {
            appearance: none;
            width: 100%;
            height: 100%;
            background: var(--bg-tertiary);
            border: none;
            border-radius: var(--radius-lg);
            padding: 0 40px 0 16px;
            color: var(--text-secondary);
            font-family: inherit;
            font-weight: 600;
            font-size: 0.875rem;
            cursor: pointer;
            transition: var(--transition-base);
            border: 1px solid transparent;
        }

        [data-theme="light"] .priority-select {
            background: #f1f5f9;
            color: #475569;
            border-color: rgba(148, 163, 184, 0.2);
        }

        .priority-select:hover {
            background: var(--bg-elevated);
            border-color: var(--border-hover);
        }

        [data-theme="light"] .priority-select:hover {
            background: #e2e8f0;
        }

        .priority-select-wrapper::after {
            content: '\f107';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 12px;
            color: var(--text-muted);
            pointer-events: none;
            transition: var(--transition-base);
        }

        .input-wrapper:focus-within .priority-select-wrapper::after {
            color: var(--accent-primary);
            transform: translateY(-50%) rotate(180deg);
        }

        .add-btn {
            background: var(--gradient-primary);
            color: white;
            border: none;
            padding: 16px 28px;
            border-radius: var(--radius-lg);
            font-weight: 700;
            font-size: 0.9375rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: var(--transition-base);
            position: relative;
            overflow: hidden;
            white-space: nowrap;
            box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
        }

        [data-theme="light"] .add-btn {
            box-shadow: 0 4px 15px rgba(79, 70, 229, 0.25);
        }

        .add-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.5s;
        }

        .add-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
        }

        [data-theme="light"] .add-btn:hover {
            box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35);
        }

        .add-btn:hover::before {
            left: 100%;
        }

        .add-btn:active {
            transform: scale(0.98);
        }

        .add-btn i {
            font-size: 18px;
        }

        /* Filter Tabs - Pill Style */
        .filter-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 28px;
            padding: 6px;
            background: var(--bg-tertiary);
            border-radius: var(--radius-xl);
            width: fit-content;
            border: 1px solid var(--border-color);
        }

        [data-theme="light"] .filter-tabs {
            background: #f1f5f9;
            border-color: rgba(148, 163, 184, 0.25);
            box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);
        }

        .filter-tab {
            background: transparent;
            border: none;
            color: var(--text-tertiary);
            padding: 10px 24px;
            border-radius: var(--radius-lg);
            cursor: pointer;
            font-family: inherit;
            font-weight: 600;
            font-size: 0.875rem;
            transition: var(--transition-base);
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        [data-theme="light"] .filter-tab {
            color: #64748b;
        }

        .filter-tab:hover {
            color: var(--text-primary);
            background: rgba(255,255,255,0.05);
        }

        [data-theme="light"] .filter-tab:hover {
            color: #334155;
            background: rgba(255,255,255,0.6);
        }

        .filter-tab.active {
            color: white;
            background: var(--bg-secondary);
            box-shadow: var(--shadow-md);
        }

        [data-theme="light"] .filter-tab.active {
            background: white;
            color: #4f46e5;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.08);
        }

        .filter-tab.active::before {
            content: '';
            position: absolute;
            inset: 0;
            background: var(--gradient-primary);
            opacity: 0.1;
            border-radius: inherit;
        }

        [data-theme="light"] .filter-tab.active::before {
            opacity: 0.05;
        }

        /* Stats Dashboard */
        .stats-dashboard {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
            margin-bottom: 28px;
        }

        .stat-card {
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-xl);
            padding: 20px;
            text-align: center;
            transition: var(--transition-base);
            position: relative;
            overflow: hidden;
        }

        [data-theme="light"] .stat-card {
            background: white;
            border-color: rgba(148, 163, 184, 0.2);
            box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradient-primary);
            transform: scaleX(0);
            transition: transform var(--transition-slow);
        }

        .stat-card:hover {
            transform: translateY(-4px);
            border-color: var(--border-hover);
            box-shadow: var(--shadow-lg);
        }

        [data-theme="light"] .stat-card:hover {
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
        }

        .stat-card:hover::before {
            transform: scaleX(1);
        }

        .stat-icon {
            font-size: 20px;
            margin-bottom: 8px;
            color: var(--accent-primary);
        }

        [data-theme="light"] .stat-icon {
            color: #4f46e5;
        }

        .stat-value {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 2rem;
            font-weight: 700;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1;
            margin-bottom: 4px;
        }

        .stat-label {
            font-size: 0.75rem;
            color: var(--text-muted);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        [data-theme="light"] .stat-label {
            color: #64748b;
        }

        /* Progress Section */
        .progress-section {
            margin-bottom: 28px;
        }

        .progress-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }

        .progress-title {
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        [data-theme="light"] .progress-title {
            color: #475569;
        }

        .progress-percentage {
            font-family: 'Space Grotesk', sans-serif;
            font-weight: 700;
            color: var(--accent-primary);
            font-size: 0.875rem;
        }

        [data-theme="light"] .progress-percentage {
            color: #4f46e5;
        }

        .progress-track {
            height: 8px;
            background: var(--bg-tertiary);
            border-radius: 50px;
            overflow: hidden;
            position: relative;
            border: 1px solid var(--border-color);
        }

        [data-theme="light"] .progress-track {
            background: #e2e8f0;
            border-color: rgba(148, 163, 184, 0.2);
        }

        .progress-fill {
            height: 100%;
            background: var(--gradient-success);
            border-radius: 50px;
            transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .progress-fill::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            animation: progressShine 2s infinite;
        }

        @keyframes progressShine {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        /* Task List */
        .task-list {
            list-style: none;
            max-height: 500px;
            overflow-y: auto;
            padding-right: 8px;
            margin-right: -8px;
        }

        .task-list::-webkit-scrollbar {
            width: 6px;
        }

        .task-list::-webkit-scrollbar-track {
            background: transparent;
        }

        .task-list::-webkit-scrollbar-thumb {
            background: var(--bg-tertiary);
            border-radius: 10px;
        }

        [data-theme="light"] .task-list::-webkit-scrollbar-thumb {
            background: #cbd5e1;
        }

        .task-list::-webkit-scrollbar-thumb:hover {
            background: var(--text-muted);
        }

        [data-theme="light"] .task-list::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

        .task-item {
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-xl);
            padding: 20px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 16px;
            transition: var(--transition-base);
            animation: slideUp 0.4s ease-out;
            position: relative;
            overflow: hidden;
            cursor: pointer;
        }

        [data-theme="light"] .task-item {
            background: white;
            border-color: rgba(148, 163, 184, 0.15);
            box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .task-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: var(--priority-color, var(--accent-primary));
            opacity: 0;
            transition: opacity var(--transition-base);
        }

        .task-item:hover {
            transform: translateX(8px);
            border-color: var(--border-hover);
            box-shadow: var(--shadow-lg);
        }

        [data-theme="light"] .task-item:hover {
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.02);
            border-color: rgba(79, 70, 229, 0.2);
        }

        .task-item:hover::before {
            opacity: 1;
        }

        .task-item.completed {
            opacity: 0.7;
            background: var(--bg-secondary);
        }

        [data-theme="light"] .task-item.completed {
            background: #f8fafc;
            opacity: 0.8;
        }

        .task-item.completed .task-text {
            text-decoration: line-through;
            color: var(--text-muted);
        }

        [data-theme="light"] .task-item.completed .task-text {
            color: #94a3b8;
        }

        .task-checkbox {
            width: 28px;
            height: 28px;
            border: 2px solid var(--border-color);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition-base);
            flex-shrink: 0;
            background: var(--bg-input);
        }

        [data-theme="light"] .task-checkbox {
            background: white;
            border-color: #cbd5e1;
        }

        .task-checkbox:hover {
            border-color: var(--accent-primary);
            transform: scale(1.1);
        }

        .task-item.completed .task-checkbox {
            background: var(--gradient-success);
            border-color: transparent;
        }

        .task-checkbox i {
            color: white;
            font-size: 14px;
            opacity: 0;
            transform: scale(0);
            transition: all 0.3s ease;
        }

        .task-item.completed .task-checkbox i {
            opacity: 1;
            transform: scale(1);
        }

        .task-content {
            flex: 1;
            min-width: 0;
        }

        .task-text {
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 6px;
            word-break: break-word;
            font-size: 0.9375rem;
            line-height: 1.5;
        }

        [data-theme="light"] .task-text {
            color: #1e293b;
        }

        .task-meta {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .task-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 12px;
            border-radius: 50px;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.025em;
        }

        .task-badge i {
            font-size: 10px;
        }

        .badge-priority-high {
            background: rgba(239, 68, 68, 0.1);
            color: var(--accent-danger);
        }

        [data-theme="light"] .badge-priority-high {
            background: rgba(220, 38, 38, 0.08);
            color: #dc2626;
        }

        .badge-priority-medium {
            background: rgba(245, 158, 11, 0.1);
            color: var(--accent-warning);
        }

        [data-theme="light"] .badge-priority-medium {
            background: rgba(217, 119, 6, 0.08);
            color: #d97706;
        }

        .badge-priority-low {
            background: rgba(16, 185, 129, 0.1);
            color: var(--accent-success);
        }

        [data-theme="light"] .badge-priority-low {
            background: rgba(5, 150, 105, 0.08);
            color: #059669;
        }

        .task-date {
            font-size: 0.75rem;
            color: var(--text-muted);
            font-family: 'Space Grotesk', monospace;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        [data-theme="light"] .task-date {
            color: #94a3b8;
        }

        .task-actions {
            display: flex;
            gap: 8px;
            opacity: 0;
            transform: translateX(10px);
            transition: var(--transition-base);
        }

        .task-item:hover .task-actions {
            opacity: 1;
            transform: translateX(0);
        }

        .action-btn {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            border: none;
            background: var(--bg-input);
            color: var(--text-tertiary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition-base);
            font-size: 16px;
            border: 1px solid var(--border-color);
        }

        [data-theme="light"] .action-btn {
            background: #f1f5f9;
            color: #64748b;
            border-color: rgba(148, 163, 184, 0.2);
        }

        .action-btn:hover {
            background: var(--accent-danger);
            color: white;
            transform: scale(1.1);
            border-color: transparent;
        }

        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 80px 20px;
            color: var(--text-muted);
        }

        [data-theme="light"] .empty-state {
            color: #94a3b8;
        }

        .empty-illustration {
            width: 200px;
            height: 200px;
            margin: 0 auto 32px;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .empty-circle {
            position: absolute;
            border-radius: 50%;
            background: var(--bg-tertiary);
            animation: emptyPulse 3s ease-in-out infinite;
        }

        [data-theme="light"] .empty-circle {
            background: #f1f5f9;
        }

        .empty-circle:nth-child(1) {
            width: 200px;
            height: 200px;
            top: 0;
            left: 0;
            animation-delay: 0s;
        }

        .empty-circle:nth-child(2) {
            width: 140px;
            height: 140px;
            top: 30px;
            left: 30px;
            background: var(--bg-secondary);
            animation-delay: 0.5s;
        }

        [data-theme="light"] .empty-circle:nth-child(2) {
            background: #e2e8f0;
        }

        .empty-circle:nth-child(3) {
            width: 80px;
            height: 80px;
            top: 60px;
            left: 60px;
            background: var(--gradient-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            animation-delay: 1s;
        }

        .empty-circle:nth-child(3) i {
            color: white;
            font-size: 32px;
        }

        @keyframes emptyPulse {
            0%, 100% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.05); opacity: 0.8; }
        }

        .empty-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--text-secondary);
            margin-bottom: 8px;
        }

        [data-theme="light"] .empty-title {
            color: #334155;
        }

        .empty-text {
            font-size: 0.875rem;
            max-width: 300px;
            margin: 0 auto;
            line-height: 1.6;
        }

        /* Footer */
        .app-footer {
            margin-top: auto;
            padding: 24px 0;
            text-align: center;
            color: var(--text-muted);
            font-size: 0.875rem;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
        }

        [data-theme="light"] .app-footer {
            color: #94a3b8;
        }

        .footer-link {
            color: var(--accent-primary);
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition-fast);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        [data-theme="light"] .footer-link {
            color: #4f46e5;
        }

        .footer-link:hover {
            text-decoration: underline;
        }

        /* Toast Notifications */
        .toast-container {
            position: fixed;
            bottom: 24px;
            right: 24px;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            gap: 12px;
            pointer-events: none;
        }

        .toast {
            background: var(--bg-glass);
            backdrop-filter: blur(20px);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-lg);
            padding: 16px 24px;
            display: flex;
            align-items: center;
            gap: 12px;
            box-shadow: var(--shadow-xl);
            transform: translateX(400px);
            opacity: 0;
            transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            pointer-events: all;
            min-width: 300px;
        }

        [data-theme="light"] .toast {
            background: rgba(255, 255, 255, 0.95);
            border-color: rgba(148, 163, 184, 0.2);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
        }

        .toast.show {
            transform: translateX(0);
            opacity: 1;
        }

        .toast-icon {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
        }

        .toast-success .toast-icon { 
            background: rgba(16, 185, 129, 0.1); 
            color: var(--accent-success);
        }

        [data-theme="light"] .toast-success .toast-icon {
            background: rgba(5, 150, 105, 0.1);
            color: #059669;
        }

        .toast-error .toast-icon { 
            background: rgba(239, 68, 68, 0.1); 
            color: var(--accent-danger);
        }

        [data-theme="light"] .toast-error .toast-icon {
            background: rgba(220, 38, 38, 0.1);
            color: #dc2626;
        }

        .toast-info .toast-icon { 
            background: rgba(99, 102, 241, 0.1); 
            color: var(--accent-primary);
        }

        [data-theme="light"] .toast-info .toast-icon {
            background: rgba(79, 70, 229, 0.1);
            color: #4f46e5;
        }

        .toast-content {
            flex: 1;
        }

        .toast-title {
            font-weight: 700;
            color: var(--text-primary);
            font-size: 0.9375rem;
            margin-bottom: 2px;
        }

        [data-theme="light"] .toast-title {
            color: #0f172a;
        }

        .toast-message {
            color: var(--text-tertiary);
            font-size: 0.875rem;
        }

        [data-theme="light"] .toast-message {
            color: #475569;
        }

        /* Confetti Canvas */
        #confetti-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 9999;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .app-wrapper {
                padding: 16px;
            }

            .main-card {
                padding: 24px;
                border-radius: var(--radius-xl);
            }

            .brand-info h1 {
                font-size: 1.5rem;
            }

            .input-wrapper {
                flex-wrap: wrap;
            }

            .input-field {
                width: 100%;
                order: 1;
            }

            .priority-select-wrapper {
                order: 2;
                flex: 1;
            }

            .add-btn {
                order: 3;
                width: 100%;
                justify-content: center;
            }

            .stats-dashboard {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }

            .stat-card {
                padding: 16px;
            }

            .stat-value {
                font-size: 1.5rem;
            }

            .filter-tabs {
                width: 100%;
                justify-content: center;
            }

            .filter-tab {
                flex: 1;
                text-align: center;
                padding: 10px 16px;
            }

            .task-item {
                padding: 16px;
            }

            .task-actions {
                opacity: 1;
                transform: none;
            }

            .toast-container {
                left: 16px;
                right: 16px;
                bottom: 16px;
            }

            .toast {
                min-width: unset;
                width: 100%;
            }
        }

        @media (max-width: 480px) {
            .brand-logo {
                width: 48px;
                height: 48px;
            }

            .brand-logo i {
                font-size: 24px;
            }

            .stats-dashboard {
                grid-template-columns: 1fr 1fr;
            }

            .stat-card:nth-child(3),
            .stat-card:nth-child(4) {
                display: none;
            }

            .task-meta {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }
        }

        /* Accessibility */
        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

        /* Selection Color */
        ::selection {
            background: rgba(99, 102, 241, 0.3);
            color: var(--text-primary);
        }

        [data-theme="light"] ::selection {
            background: rgba(79, 70, 229, 0.2);
            color: #0f172a;
        }

        /* Focus Visible */
        :focus-visible {
            outline: 2px solid var(--accent-primary);
            outline-offset: 2px;
        }

        [data-theme="light"] :focus-visible {
            outline-color: #4f46e5;
        }
