@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Exo+2:wght@300;400;500;600;700&display=swap');

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #00d4ff;
            --primary-dark: #0099cc;
            --secondary: #1a1a2e;
            --accent: #ff6b6b;
            --success: #4ecdc4;
            --warning: #ffe66d;
            --danger: #ff4757;
            --text-primary: #ffffff;
            --text-secondary: #b8c5d6;
            --text-muted: #6c7b7f;
            --bg-primary: #0f0f23;
            --bg-secondary: #16213e;
            --bg-tertiary: #1a1a2e;
            --border: #2d3748;
            --glow: rgba(0, 212, 255, 0.5);
            --shadow-neon: 0 0 20px rgba(0, 212, 255, 0.3);
            --shadow-intense: 0 0 40px rgba(0, 212, 255, 0.6);
        }

        body {
            font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: radial-gradient(ellipse at top, #0f0f23 0%, #000000 100%);
            min-height: 100vh;
            padding: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow-x: hidden;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 25% 25%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 75% 75%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(78, 205, 196, 0.05) 0%, transparent 50%);
            pointer-events: none;
            z-index: -1;
            animation: pulse 4s ease-in-out infinite alternate;
        }

        @keyframes pulse {
            0% { opacity: 0.5; }
            100% { opacity: 1; }
        }

        .app-container {
            background: rgba(15, 15, 35, 0.95);
            border: 1px solid var(--border);
            border-radius: 20px;
            box-shadow: 
                var(--shadow-neon),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            width: 100%;
            max-width: 500px;
            overflow: hidden;
            backdrop-filter: blur(20px);
            position: relative;
        }

        .app-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--primary), transparent);
            animation: scanline 3s linear infinite;
        }

        @keyframes scanline {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        .header {
            background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
            padding: 2.5rem 2rem 2rem;
            color: var(--text-primary);
            position: relative;
            overflow: hidden;
            border-bottom: 1px solid var(--border);
        }

        .header::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                linear-gradient(45deg, transparent 30%, rgba(0, 212, 255, 0.05) 50%, transparent 70%);
            animation: shimmer 3s ease-in-out infinite;
        }

        @keyframes shimmer {
            0%, 100% { transform: translateX(-100%); }
            50% { transform: translateX(100%); }
        }

        .header h1 {
            font-family: 'Orbitron', monospace;
            font-size: 2.2rem;
            font-weight: 900;
            margin-bottom: 0.5rem;
            position: relative;
            z-index: 1;
            background: linear-gradient(45deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 0 0 30px var(--glow);
            letter-spacing: 2px;
        }

        .header p {
            opacity: 0.8;
            font-weight: 300;
            position: relative;
            z-index: 1;
            color: var(--text-secondary);
            font-size: 1.1rem;
            letter-spacing: 0.5px;
        }

        .input-section {
            padding: 2rem;
            background: var(--bg-primary);
            position: relative;
        }

        .input-container {
            position: relative;
            margin-bottom: 2rem;
        }

        .task-input {
            width: 100%;
            padding: 1.5rem 1.5rem 1.5rem 3rem;
            border: 2px solid var(--border);
            border-radius: 15px;
            font-size: 1.1rem;
            font-weight: 400;
            outline: none;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            background: rgba(22, 33, 62, 0.8);
            color: var(--text-primary);
            backdrop-filter: blur(10px);
            position: relative;
        }

        .input-container::before {
            content: '⚡';
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1.2rem;
            color: var(--primary);
            z-index: 1;
            animation: glow 2s ease-in-out infinite alternate;
        }

        @keyframes glow {
            0% { text-shadow: 0 0 5px var(--primary); }
            100% { text-shadow: 0 0 20px var(--primary), 0 0 30px var(--primary); }
        }

        .task-input:focus {
            border-color: var(--primary);
            box-shadow: 
                0 0 0 3px rgba(0, 212, 255, 0.3),
                var(--shadow-neon);
            background: rgba(22, 33, 62, 1);
            transform: translateY(-2px);
        }

        .task-input::placeholder {
            color: var(--text-muted);
            font-style: italic;
        }

        .add-btn {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: var(--bg-primary);
            border: none;
            padding: 1.5rem 2rem;
            border-radius: 15px;
            font-size: 1.1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: var(--shadow-neon);
            position: relative;
            overflow: hidden;
            width: 100%;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-family: 'Orbitron', monospace;
        }

        .add-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            transition: left 0.6s;
        }

        .add-btn:hover::before {
            left: 100%;
        }

        .add-btn:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-intense);
            background: linear-gradient(135deg, #00f0ff 0%, var(--primary) 100%);
        }

        .add-btn:active {
            transform: translateY(-1px);
        }

        .filters {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 2rem;
            padding: 0.75rem;
            background: rgba(22, 33, 62, 0.6);
            border-radius: 15px;
            border: 1px solid var(--border);
            backdrop-filter: blur(10px);
        }

        .filter-btn {
            padding: 0.75rem 1.25rem;
            border: 1px solid transparent;
            background: transparent;
            color: var(--text-secondary);
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
            font-size: 0.9rem;
            flex: 1;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            position: relative;
            overflow: hidden;
        }

        .filter-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, var(--primary), var(--accent));
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .filter-btn span {
            position: relative;
            z-index: 1;
        }

        .filter-btn.active::before {
            opacity: 1;
        }

        .filter-btn.active {
            color: var(--bg-primary);
            box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
            font-weight: 700;
        }

        .filter-btn:hover:not(.active) {
            background: rgba(0, 212, 255, 0.1);
            color: var(--primary);
            border-color: var(--primary);
        }

        .tasks-container {
            background: var(--bg-primary);
            padding: 0 2rem 2rem;
        }

        .task-list {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .task-item {
            background: rgba(22, 33, 62, 0.8);
            border: 1px solid var(--border);
            border-radius: 15px;
            padding: 1.5rem;
            display: flex;
            align-items: center;
            gap: 1.25rem;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(10px);
        }

        .task-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: linear-gradient(180deg, var(--primary), var(--accent));
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .task-item:hover::before {
            opacity: 1;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateX(-30px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .task-item:hover {
            transform: translateY(-3px);
            box-shadow: 
                0 10px 25px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(0, 212, 255, 0.2);
            border-color: var(--primary);
            background: rgba(22, 33, 62, 1);
        }

        .task-item.completed {
            opacity: 0.6;
            background: rgba(15, 15, 35, 0.8);
        }

        .task-item.completed .task-text {
            text-decoration: line-through;
            color: var(--text-muted);
        }

        .task-checkbox {
            width: 24px;
            height: 24px;
            border: 2px solid var(--border);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            flex-shrink: 0;
            position: relative;
        }

        .task-checkbox::before {
            content: '';
            position: absolute;
            inset: -2px;
            border-radius: 10px;
            background: linear-gradient(45deg, var(--success), var(--primary));
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .task-checkbox.checked::before {
            opacity: 1;
        }

        .task-checkbox.checked {
            border-color: transparent;
            color: var(--bg-primary);
        }

        .task-checkbox.checked::after {
            content: '✓';
            color: var(--bg-primary);
            font-size: 0.8rem;
            font-weight: bold;
            position: relative;
            z-index: 1;
        }

        .task-text {
            flex: 1;
            font-size: 1.1rem;
            color: var(--text-primary);
            font-weight: 400;
            line-height: 1.6;
        }

        .task-actions {
            display: flex;
            gap: 0.75rem;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .task-item:hover .task-actions {
            opacity: 1;
        }

        .action-btn {
            width: 40px;
            height: 40px;
            border: 1px solid var(--border);
            border-radius: 10px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            font-size: 1rem;
            background: rgba(22, 33, 62, 0.8);
            backdrop-filter: blur(10px);
        }

        .delete-btn {
            color: var(--danger);
            border-color: rgba(255, 71, 87, 0.3);
        }

        .delete-btn:hover {
            background: var(--danger);
            color: var(--text-primary);
            transform: scale(1.1);
            box-shadow: 0 0 15px rgba(255, 71, 87, 0.4);
        }

        .task-date {
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-left: auto;
            flex-shrink: 0;
            font-family: 'Orbitron', monospace;
            background: rgba(0, 212, 255, 0.1);
            padding: 0.25rem 0.5rem;
            border-radius: 6px;
            border: 1px solid rgba(0, 212, 255, 0.2);
        }

        .empty-state {
            text-align: center;
            padding: 4rem 1rem;
            color: var(--text-muted);
        }

        .empty-state .icon {
            font-size: 4rem;
            margin-bottom: 1.5rem;
            opacity: 0.7;
            animation: float 3s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }

        .empty-state p {
            font-size: 1.1rem;
            font-weight: 300;
        }

        .stats {
            padding: 1.5rem 2rem;
            background: rgba(22, 33, 62, 0.6);
            border-top: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.9rem;
            color: var(--text-secondary);
            backdrop-filter: blur(10px);
        }

        .stats span {
            font-family: 'Orbitron', monospace;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .fade-out {
            animation: fadeOut 0.4s ease forwards;
        }

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

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-8px); }
            75% { transform: translateX(8px); }
        }

        /* Scrollbar styling */
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: var(--bg-secondary);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--primary-dark);
        }

        @media (max-width: 640px) {
            body {
                padding: 0.5rem;
            }
            
            .app-container {
                border-radius: 15px;
                max-width: none;
            }
            
            .header {
                padding: 2rem 1.5rem 1.5rem;
            }
            
            .header h1 {
                font-size: 1.8rem;
            }
            
            .input-section,
            .tasks-container {
                padding: 1.5rem;
            }
            
            .task-item {
                padding: 1.25rem;
            }
            
            .stats {
                padding: 1.25rem 1.5rem;
            }
            
            .filter-btn {
                font-size: 0.8rem;
                padding: 0.6rem 1rem;
            }
        }