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

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #1e1e2f, #2c2c54);
            color: white;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            width: 100%;
            max-width: 500px;
            background: rgba(255, 255, 255, 0.08);
            padding: 25px;
            border-radius: 20px;
            backdrop-filter: blur(12px);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        h1 {
            text-align: center;
            font-size: 28px;
            margin-bottom: 20px;
            font-weight: 600;
            letter-spacing: 1px;
        }

        .input-section {
            display: flex;
            gap: 12px;
            margin-bottom: 20px;
        }

        input {
            flex: 1;
            padding: 12px 15px;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            background: rgba(255, 255, 255, 0.15);
            color: white;
            outline: none;
            transition: all 0.3s;
        }

        input::placeholder {
            color: rgba(255, 255, 255, 0.6);
        }

        input:focus {
            background: rgba(255, 255, 255, 0.25);
            box-shadow: 0 0 8px rgba(76, 175, 239, 0.5);
        }

        button {
            padding: 12px 20px;
            border: none;
            background: linear-gradient(135deg, #4cafef, #2196f3);
            color: white;
            border-radius: 12px;
           cursor: pointer;
            font-weight: bold;
            transition: all 0.3s;
           
        }

        button:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(33, 150, 243, 0.4);
        }

        .counter {
            display: flex;
            justify-content: space-between;
            background: rgba(255, 255, 255, 0.1);
            padding: 12px;
            border-radius: 12px;
            margin-bottom: 20px;
            font-size: 14px;
            font-weight: 500;
        }

        .counter span {
            background: rgba(0, 0, 0, 0.3);
            padding: 4px 12px;
            border-radius: 20px;
        }

        ul {
            list-style: none;
            padding: 0;
            max-height: 400px;
            overflow-y: auto;
        }

        /* Custom scrollbar */
        ul::-webkit-scrollbar {
            width: 6px;
        }

        ul::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
        }

        ul::-webkit-scrollbar-thumb {
            background: #4cafef;
            border-radius: 10px;
        }

        .task {
            background: rgba(255, 255, 255, 0.1);
            padding: 14px;
            margin-bottom: 10px;
            border-radius: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s;
            animation: fadeIn 0.3s ease;
        }

        .task:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateX(5px);
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .task.completed span:first-child {
            text-decoration: line-through;
            opacity: 0.6;
        }

        .task span:first-child {
            flex: 1;
            word-break: break-word;
            cursor: pointer;
        }

        .icons {
            display: flex;
            gap: 12px;
        }

        .icons span {
            cursor: pointer;
            font-size: 20px;
            transition: transform 0.2s;
        }

        .icons span:hover {
            transform: scale(1.2);
        }

        .empty-message {
            text-align: center;
            padding: 40px;
            color: rgba(255, 255, 255, 0.5);
            font-style: italic;
        }

        /* Filter buttons */
        .filters {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
        }

        .filter-btn {
            flex: 1;
            padding: 8px;
            background: rgba(255, 255, 255, 0.1);
            font-size: 14px;
        }

        .filter-btn.active {
            background: #4cafef;
        }

        /* Clear completed button */
        .clear-btn {
            width: 100%;
            margin-top: 10px;
            background: rgba(255, 100, 100, 0.8);
        }

        .clear-btn:hover {
            background: #ff5252;
        }
